hi, I’m trying to add a permission to a custom admin role using this API like below
curl -s -X POST -H "Authorization: SSWS ${OKTA_TOKEN}" \
-H "Content-Type: application/json" \
-d "{}" \
"https://some-domain.okta.com/api/v1/iam/roles/${ROLE_NAME}/permissions/okta.policies.read"
however I got the error: {"errorCode":"E0000020","errorSummary":"Bad request.","errorLink":"E0000020","errorId":"oae_0yYuJG_QJ-hytJOzgTuyg","errorCauses":[]}
back. Trying with other permission (e.g. okta.users.manage
) works
Does anyone know what might be the issue? okta.policies.read
is listed in the list of permissions here
thanks