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


Thank You,
Sameera

On Wed, May 25, 2016 at 6:25 PM, Thusitha Thilina Dayaratne <
[email protected]> wrote:

> 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 <[email protected]>
> wrote:
>
>> 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
>> <http://l.facebook.com/l.php?u=http%3A%2F%2Fwso2.com&h=gAQEswASa>
>> Email: [email protected]
>> Mobile: +94714155561
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog      alokayasoya.blogspot.com
> About    http://about.me/thusithathilina
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sameera Medagammaddegedara
Software Engineer

Contact:
Email: [email protected]
Mobile: + 94 077 255 3005
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to