Reputation: 1290
I have a question relating to get all profiles ( email, phone, address ) after logging successfully in WSO2 Identity Server.
After login, we can have cookie(sessionID) and then based on this, we can use UserStoreManager to get roles, list user, profiles... and as mentioned in the below link.
I can get use function to get profiles getProfileNames() but the result when I call is only ["default"] while I inputted my email, phone, address, etc in userprofile section in console.
I appreciate your help in this case. Hope that you can help me. Thanks
https://docs.wso2.com/display/IS510/Managing+Users+and+Roles+with+APIs
Upvotes: 1
Views: 1371
Reputation: 3011
Right, so what you are trying to achieve is to get claim values(email, phone etc.) of a user.
for this, you can use the getUserClaimValue()[1] or getUserClaimValuesForClaims()[2]
Both these method take in three arguments,
Upvotes: 1