List role assignments
GET/v1/directory/assignments
Lists who holds which role on which account. Each assignment names a person or a group.
Permission: identity:ListPolicies
Returns
200 OK
{
"assignments": [
{
"id": "c2d3e4f5-a6b7-4c8d-9e0f-1a2b3c4d5e6f",
"permission_set_id": "5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
"account_id": 100000000123,
"group_id": "3c5e8a90-1d2b-4e6f-8a7c-9b0d1e2f3a4b"
}
]
}Example
curl https://<company>.yotta.bot/v1/directory/assignments \
-H "Authorization: Bearer $YOTTABOT_TOKEN"With yottactl
yottactl org assignments list