On Wed, Aug 10, 2016 at 5:56 PM, Prabushi Samarakoon <[email protected]>
wrote:

>
> Hi All,
>
> 1. Is there an  API method to get all the resources permitted to a
> particular user or a role?
>

Yes. You can use the method getPermissions(Action action) [1] in User to
retrieve all the permissions assigned to that particular user filtered by
the action. Permission is a resource + action. So permissions filtered by
the action is a list of permitted resources.

>
> 2. With this permission model, are we going to introduce the email based
> authentication for the products, or remain with the username model?
>
> 3. In our current management console, we have one view to create the user,
> and another view to create the user profile according to the given
> http://wso2.org/claims. Is there a particular reason to have the user
> profile in a separate view? Do we need to have two views for user creation
> and profile in C5 model also?
>
> Any clarification on above matters is appreciated.
>
> Thanks and Regards,
> Prabushi
>
> --
> *Prabushi Samarakoon*
> Software Engineer
> Mobile: +94715434580
> Email: [email protected]
>

[1]
https://github.com/wso2/carbon-security/blob/master/components/org.wso2.carbon.security.caas/src/main/java/org/wso2/carbon/security/caas/user/core/bean/User.java#L188

Thanks!
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to