[Dev] [PC]Getting permission list for a Role

2016-05-25 Thread Sameera Gunarathne
Hi all, As in $Subject I need to get the permissions list for a role(i.e "internal/publisher) from the registry. Can I get the api method for this task? Thanks. Regards, Sameera. -- Sameera Gunarathne Software Engineer, WSO2 Inc. http://wso2.com

Re: [Dev] [PC]Getting permission list for a Role

2016-05-25 Thread Thusitha Thilina Dayaratne
Hi Sameera, AFAIK you can use the UserAdmin service getRolePermissions method to get the role permission Thanks Thusitha On Wed, May 25, 2016 at 6:04 PM, Sameera Gunarathne wrote: > Hi all, > > As in $Subject I need to get the permissions list for a role(i.e > "internal/publisher) from the reg

Re: [Dev] [PC]Getting permission list for a Role

2016-05-25 Thread Sameera Medagammaddegedara
Hi Sameera, Is it safe to assume that you are attempting to do this from within the PC apps (is it in the Publisher?) ? If yes, you can take a look at the following function: https://github.com/wso2/carbon-store/blob/master/jaggery-modules/rxt/module/scripts/permissions/permissions.js#L589 Tha

Re: [Dev] [PC]Getting permission list for a Role

2016-05-25 Thread Sameera Gunarathne
Hi SameeraM, yeah it's needed to be done within PC apps. Thanks for your input. Thanks. Regards. Sameera On Wed, May 25, 2016 at 6:42 PM, Sameera Medagammaddegedara < samee...@wso2.com> wrote: > Hi Sameera, > > Is it safe to assume that you are attempting to do this from within the PC > apps (