Sign in

Add user to role

documented

Add a user to a role.

POST /api/v2/roles/{role_id}/usersRolesno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.datadoghq.com/api/v2/roles/{{$role_id}}/users" \
  -X POST \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "DD-API-KEY: {{DATADOGHQ_API_KEY}}" \
  -H "DD-APPLICATION-KEY: {{DATADOGHQ_APP_KEY}}" \
  -d '{"data": {"id": "{{$user_id}}", "type": "users"}}'