The following request deletes the role assigned to a user group.
Execution permission
You must be a system administrator or a security administrator.
Request line
DELETE base-URL/security/v1/user-groups/object-ID-of-the-user-group/role-mappings/portal/role-name
Request message
- Object ID of the user group
-
Specify the value of id acquired by using the request for getting information about a list of user groups.
Attribute
Type
Description
id
string
(Required) Object ID of the user group
- Role name
-
Specify the value of name acquired by using the request for getting information about a list of roles that can be assigned to a specific user group.
However, you cannot specify the opscenter-user role.
Attribute
Type
Description
roleName
string
(Required) Role name
- Query parameters
- None.
- Body
- None.
Coding example
curl -v -X DELETE -s "https://example.com:443/portal/security/v1/user-groups/baf760bc-c789-4cb9-a9cb-662b0b2e4be1/role-mappings/portal/opscenter-security-administrator" -H "Authorization:Bearer eyJhbxxx"
Tip: Because this request uses SSL
communication, you must either run the curl command with the root
certificate of the Common Services server certificate
specified for the --cacert option, or run the command with the
-k option specified. (The -k option runs the command by
ignoring SSL errors.)