Logo
Akamai APIs API Documentation

List allowed CP codes

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

This operation lists available CP codes for a user.

 

Body PARAM

Key Datatype Required Description 
accountSwitchKey
string (Optional) For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




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 } ]



Curl
curl -X POST 'https://host/identity-management/v3/users/:username/allowed-cpcodes?accountSwitchKey=' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"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}]}]}'

ENDPOINTS