Create Role
Create a role.
What you are doing
Creating the role that represents who can perform operations against the DOB data element.
Why it matters
Permissions are granted to roles, and roles map to real users or groups via member sources.
Tips
- If you keep the
--allow-alloption in the command, then setALLOWALLtoTrue. - Consider which user needs what level of access and create a role for each set of users.
CLI Code
pim create roles role --name "dob_protect_role" --description "Role having access to protect DOB" --mode "MANUAL"
CLI Actual Output
NAME DESCRIPTION MODE ALLOWALL UID
dob_protect_role Role having access to protect DOB RoleMode.MANUAL False 1
API Endpoint
POST /pim/roles
API Code
curl -k \
-H "Authorization: Bearer ${TOKEN}" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-X POST "https://${GW_HOST}/pty/v2/pim/roles" \
-d '{
"name": "dob_protect_role",
"description": "Role having access to protect DOB",
"mode": "MANUAL",
"allowAll": false
}'
API Actual Output
{"name":"dob_protect_role","description":"Role having access to protect DOB","mode":"MANUAL","uid":"1","allowAll":false}
Feedback
Was this page helpful?