[
https://issues.apache.org/jira/browse/USERGRID-307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mohit Kumar Sahu updated USERGRID-307:
--------------------------------------
Description:
As per the usergrid documentation:
"Groups are hierarchical. Every member of the group
/groups/california/san-francisco is also a member of the group
/groups/california."
My Use Case:
/groups/california has User-A
/groups/california/san-francisco has User-B
Now when User-A posts an activity to /groups/california; then User-B is 'not'
able to see it in it's feed.
What am i doing wrong? Should'nt User-B be able to see the parent group
activities in its feed?
Please help.
Note: I have not added any specific permission or roles in my app.I am using
the default role right now
Thanks,
was:
I have two groups 'group-1' and 'group-2'.
'group-1' has one member 'user-1'
'group-2' has one member 'user-2'
Expected behaviour:
'user-1': should be able to get 'and' post activities into 'group-1'
'user-2': should be able to 'only' get activities from 'group-1'. He should
'not' be allowed to post activities into 'group-1'.
What i tried:
Step 1: I removed all the permissions from default role.
Step 2: I added below permissions:
--> {"permission":"get,post,put,delete:/groups/group-1/*"} to 'user-1'
--> {"permission":"get,post,put,delete:/groups/group-1/**"} to 'user-1'
--> {"permission":"get:/groups/group-1/*"} to 'user-2'
--> {"permission":"get:/groups/group-1/**"} to 'user-2'
Testing GET calls via a REST HTTP client:
Test1: GET /myorg/myapp/groups/group-1/activities?access_token=<access token of
user-1> - gives error
Test2: GET /myorg/myapp/groups/group-1/activities?access_token=<access token of
user-2> - gives error
Both are failing. Please help.
Really appreciate your help.
Thanks,
Summary: Sub-groups (was: Permissions not working)
> Sub-groups
> ----------
>
> Key: USERGRID-307
> URL: https://issues.apache.org/jira/browse/USERGRID-307
> Project: Usergrid
> Issue Type: Story
> Components: Stack
> Affects Versions: 1.0
> Reporter: Mohit Kumar Sahu
>
> As per the usergrid documentation:
> "Groups are hierarchical. Every member of the group
> /groups/california/san-francisco is also a member of the group
> /groups/california."
> My Use Case:
> /groups/california has User-A
> /groups/california/san-francisco has User-B
> Now when User-A posts an activity to /groups/california; then User-B is 'not'
> able to see it in it's feed.
> What am i doing wrong? Should'nt User-B be able to see the parent group
> activities in its feed?
> Please help.
> Note: I have not added any specific permission or roles in my app.I am using
> the default role right now
> Thanks,
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)