Search code examples
javaspring-bootspring-securitywso2wso2-identity-server

Spring and WSO2 Identity Server


I'm trying to implement a Dashboard where some users (those who have the role of Manager) can add, update and remove other users. Is there a way to add a new user updating not only my database but also the wso2 identity server?


Solution

  • For USER CRUD operations you can use the SCIM User APIs mentioned in this doc.

    You can create a new role in the identity server and add the following permissions to it. Adding these permissions will make sure that the created role has only user view, update and delete permissions.

     - /permission/admin/manage/identity/usermgt/view
     - /permission/admin/manage/identity/usermgt/create
     - /permission/admin/manage/identity/usermgt/update
     - /permission/admin/manage/identity/usermgt/delete
    

    enter image description here

    After creating the role, you can assign the role to the user who wants to manage users. Once done you can get a token for that user and use that token to authenticate the SCIM User APIs mentioned in this doc and manage users.