I can add a single new role to a user via the realm-mappings endpoint eg
http://host/auth/admin/realms/realm-name/users/some-user-id/role-mappings/realm
posting the role as the body eg
{
id: some-id
name: some-role-name
}
However, can I add multiple roles via a single request? I’d like to send a body like
[
{id: some-id, name: some-role-name},
{id: some-other-id, name: some-other-role-name},
]
Couldn’t find the answer in docs, and couldn’t do this via the above endpoint. Is this possible with some other endpoints?