Bulk assign permissions

What’s the most efficient way to assign a new permission to all current users?

so far the only way I’ve found to do this using the management api is to GET the users from /users, get their ids, then for each user (over 1000) I would have to make a separate POST to “/users/USER_ID/permissions”.

there must be a way to do this without making over 1000 requests

Hi @pgomez,

Welcome back!

I don’t see a way to add a permission to a list of users.

This sounds like a use case that would benefit from roles. You can assign multiple users a role in a single request, via this endpoint.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.