简体   繁体   中英

adding users programmatically in WSO2 API Manager

I am using a combination of WSO2 Identity Server as key server and API Manager for API authorisation against roles. My requirement is to provide Business users a UI where they can add a user, role and that should reflect in the WSO2. I am using the default user store. How can I programmatically do this? Is there a REST service which I can use?

You can do user management functionalities programmatically using the User Management APIs exposed as SOAP services. These APIs allow you to manage user, user roles and claims etc.

If you cannot use the SOAP services you can use the SCIM API which is a REST endpoint to do operations such as create, delete users. However, this has limited capabilities when compared to the User Management SOAP APIs.

You can use identity server's SCIM REST APIs to add users and roles.

Before using this API, you have to enable SCIM in your userstore configurations in user-mgt.xml .

<Property name="SCIMEnabled">true</Property> 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM