You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Michael Russo (JIRA)" <ji...@apache.org> on 2016/05/11 07:12:12 UTC

[jira] [Resolved] (USERGRID-64) Can't set "activated" to false on App-level user creation

     [ https://issues.apache.org/jira/browse/USERGRID-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Russo resolved USERGRID-64.
-----------------------------------
    Resolution: Won't Fix

> Can't set "activated" to false on App-level user creation
> ---------------------------------------------------------
>
>                 Key: USERGRID-64
>                 URL: https://issues.apache.org/jira/browse/USERGRID-64
>             Project: Usergrid
>          Issue Type: Story
>          Components: Stack
>            Reporter: Rod Simpson
>            Assignee: Anuradha Weeraman
>
> "When I create a new user for my app, there is a property called ""activated"" that is a boolean. By default it is true, and even setting it to false on creation won't work: 
> curl -X PUT https://api.usergrid.com/fdsafdsa/sadas/user?access_token=YWMt9EFU7leaEeOls4NqS97CZgAAAUK_Gt7ulGWOGHg-LFXGOaTDy9DDCQ0ZaL0 -d '{""username"":""rodster5"", ""activated"":false}' 
> { 
> ""action"" : ""post"", 
> ""application"" : ""95d01e80-3a86-11e3-b995-59ef1103710c"", 
> ""params"" : { 
> ""access_token"" : [ ""YWMt9EFU7leaEeOls4NqS97CZgAAAUK_Gt7ulGWOGHg-LFXGOaTDy9DDCQ0ZaL0"" ] 
> }, 
> ""path"" : ""/users"", 
> ""uri"" : ""https://api.usergrid.com/fdsafdsa/sadas/users"", 
> ""entities"" : [ { 
> ""uuid"" : ""aa2314aa-579b-11e3-b9ed-b3926c99de75"", 
> ""type"" : ""user"", 
> ""created"" : 1385581183722, 
> ""modified"" : 1385581183722, 
> ""username"" : ""rodster5"", 
> ""activated"" : true, 
> ""metadata"" : { 
> ""path"" : ""/users/aa2314aa-579b-11e3-b9ed-b3926c99de75"", 
> ""sets"" : { 
> ""rolenames"" : ""/users/aa2314aa-579b-11e3-b9ed-b3926c99de75/roles"", 
> ""permissions"" : ""/users/aa2314aa-579b-11e3-b9ed-b3926c99de75/permissions"" 
> }, 
> ""collections"" : { 
> ""activities"" : ""/users/aa2314aa-579b-11e3-b9ed-b3926c99de75/activities"", 
> ""devices"" : ""/users/aa2314aa-579b-11e3-b9ed-b3926c99de75/devices"", 
> ""feed"" : ""/users/aa2314aa-579b-11e3-b9ed-b3926c99de75/feed"", 
> ""groups"" : ""/users/aa2314aa-579b-11e3-b9ed-b3926c99de75/groups"", 
> ""roles"" : ""/users/aa2314aa-579b-11e3-b9ed-b3926c99de75/roles"", 
> ""following"" : ""/users/aa2314aa-579b-11e3-b9ed-b3926c99de75/following"", 
> ""followers"" : ""/users/aa2314aa-579b-11e3-b9ed-b3926c99de75/followers"" 
> } 
> } 
> } ], 
> ""timestamp"" : 1385581183718, 
> ""duration"" : 52, 
> ""organization"" : ""fdsafdsa"", 
> ""applicationName"" : ""sadas"" 
> } 
> But, if I do a PUT after, it will change it: 
> curl -X PUT https://api.usergrid.com/fdsafdsa/sadas/users/rodster5?access_token=YWMt9EFU7leaEeOls4NqS97CZgAAAUK_Gt7ulGWOGHg-LFXGOaTDy9DDCQ0ZaL0 -d '{""activated"":false}' 
> { 
> ""action"" : ""put"", 
> ""application"" : ""95d01e80-3a86-11e3-b995-59ef1103710c"", 
> ""params"" : { 
> ""access_token"" : [ ""YWMt9EFU7leaEeOls4NqS97CZgAAAUK_Gt7ulGWOGHg-LFXGOaTDy9DDCQ0ZaL0"" ] 
> }, 
> ""path"" : ""/users"", 
> ""uri"" : ""https://api.usergrid.com/fdsafdsa/sadas/users"", 
> ""entities"" : [ { 
> ""uuid"" : ""aa2314aa-579b-11e3-b9ed-b3926c99de75"", 
> ""type"" : ""user"", 
> ""created"" : 1385581183722, 
> ""modified"" : 1385581406097, 
> ""username"" : ""rodster5"", 
> ""activated"" : false, 
> ""metadata"" : { 
> ""path"" : ""/users/aa2314aa-579b-11e3-b9ed-b3926c99de75"", 
> ""sets"" : { 
> ""rolenames"" : ""/users/aa2314aa-579b-11e3-b9ed-b3926c99de75/roles"", 
> ""permissions"" : ""/users/aa2314aa-579b-11e3-b9ed-b3926c99de75/permissions"" 
> }, 
> ""collections"" : { 
> ""activities"" : ""/users/aa2314aa-579b-11e3-b9ed-b3926c99de75/activities"", 
> ""devices"" : ""/users/aa2314aa-579b-11e3-b9ed-b3926c99de75/devices"", 
> ""feed"" : ""/users/aa2314aa-579b-11e3-b9ed-b3926c99de75/feed"", 
> ""groups"" : ""/users/aa2314aa-579b-11e3-b9ed-b3926c99de75/groups"", 
> ""roles"" : ""/users/aa2314aa-579b-11e3-b9ed-b3926c99de75/roles"", 
> ""following"" : ""/users/aa2314aa-579b-11e3-b9ed-b3926c99de75/following"", 
> ""followers"" : ""/users/aa2314aa-579b-11e3-b9ed-b3926c99de75/followers"" 
> } 
> } 
> } ], 
> ""timestamp"" : 1385581406078, 
> ""duration"" : 34, 
> ""organization"" : ""fdsafdsa"", 
> ""applicationName"" : ""sadas"" 
> } 
> "



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)