Hi Wenxing,

1. what's the differences between them, how about the use cases?

Please refer [1] for more details on each of the table

> 2. when I am using the UserStoreManager to addUser with role lists, into
> which table will those roles go?

You can refer to the particular UserStore addUser method and check on this
e.g if you are using JDBCUserStore refer to [2] code might differ based on
the version
3. for an User, I can get its role list, but how to get the permission list
of an User?
I think you can refer to AS test case[1] which we do a similar thing

[1] -
http://tharindue.blogspot.com/2015/04/wso2-identity-server-data-dictionary.html
[2] -
https://github.com/wso2/carbon-kernel/blob/v4.4.9/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/jdbc/JDBCUserStoreManager.java#L1265
[3] -
https://github.com/wso2/product-as/blob/wso2as-5.3.0/modules/integration/tests-integration/tests/src/test/java/org/wso2/appserver/integration/tests/usermgt/UserManagementWithAdminUserTestCase.java#L165

Thanks
Thusitha


On Fri, Jan 6, 2017 at 1:54 PM, wenxing zheng <[email protected]>
wrote:

> Dear all,
>
> With AS 5.3.0, we are able to create multiple tenants, and per tenant, we
> can create its own users with different roles.
>
> Regarding the Role definition in the DB, we have several kinds of roles,
> including:
> 1. UM_ROLE
> 2. UM_USER_ROLE
> 3. UM_SYSTEM_ROLE
> 4. UM_SYSTEM_USER_ROLE
> 5. UM_HYBRID_ROLE
> 6. UM_HYBRID_USER_ROLE
> 7. UM_SHARED_USER_ROLE
>
> My questions are:
> 1. what's the differences between them, how about the use cases?
> 2. when I am using the UserStoreManager to addUser with role lists, into
> which table will those roles go?
> 3. for an User, I can get its role list, but how to get the permission
> list of an User?
>
>
> Please shed more light on this topic and share some detailed description
> for reference.
>
> Thanks, Wenxing
>
> _______________________________________________
> 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
<http://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to