List allowed CP codes

POST https://{{host}}/identity-management/v3/users/:username/allowed-cpcodes

This operation lists available CP codes for a user.

Request Params

KeyDatatypeRequiredDescription
accountSwitchKeystring(Optional) For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

Request Body

{"clientType"=>"CLIENT", "groups"=>[{"groupId"=>32145, "groupName"=>"Main Street Corporation", "isBlocked"=>false, "roleDescription"=>"CPCode RolePermissions Automation", "roleId"=>114492, "roleName"=>"CP Code Automation role"}, {"groupId"=>54321, "groupName"=>"High Street Company", "isBlocked"=>false, "roleDescription"=>"Admin role and Authz Case Management read role", "roleId"=>142838, "roleName"=>"Admin and Authz Case Management Read", "subGroups"=>[{"groupId"=>12345, "groupName"=>"Internet Company", "parentGroupId"=>19717}, {"groupId"=>54321, "groupName"=>"Digital Company", "parentGroupId"=>19717}]}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

[{"name":"Stream Analyzer (36915)","value":36915},{"name":"plopessa-uvod-ns (373118)","value":373118},{"name":"ArunNS (866797)","value":866797},{"name":"1234 (933076)","value":933076}]