Add user to role
documentedAdd a user to a role.
POST /api/v2/roles/{role_id}/usersRolesno implementation yet0 runsNo 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"}}'