Remove roles from a user
- Last Updated: September 5, 2025
- 1 minute read
- OpenEdge Command Center
- Version 2.0
- Documentation
Remove roles from a user to ensure that they no longer have permissions to access the system.
To remove roles from a user:
- Log in to the Authorization server as an admin user. For more information, see Log in to Authorization server.
- Locate the
Assign or remove rolesAPI with endpoint PUT-/authz/api/users and expand it. - To enable the text area, click Try it out to enable the text area.
- In the Parameters section, select
removeRolesfor the action parameter. - In Request body, provide user details and roles in JSON format.
{ "userName": "string", "rolesToRemove": [ "string" ] }The following table describes the attributes in the request body:Attribute name Description userNameSpecifies the user whose roles need to be removed. roleURNIdentifies the role that needs to be removed from the user. For more information about roleURN, see Roles in Authorization server.
- Click Execute. If the removal of roles is successful, you
see the response body in this format:
{ "message": "Request successful. These roles are removed for the user "userName": "roleURN"" }
Example
The following example demonstrates the request and response bodies for removing the
AUTHZ_ADMIN role for the user named,
JessicaWilson.
Request body
Following are the contents of the request body in JSON format:
|
Response body
Following are the contents of the response body in JSON format:
|