How can we assign multiple userids to an okta group in a single endpoint call

Hi Team,

Consider a case where while creating a new OKTA group, I need to assign Users (from a separate OKTA group) to the newly created OKTA group.

So I get the list of users from an existing okta group by using the endpoint
https://{yourOktaDomain}/api/v1/groups/{groupId}/users

and I have to use the below endpoint to assign users to the new okta group
https://{yourOktaDomain}/api/v1/groups/{groupId}/users/{userId}

If there are multiple users, I need to call the above API multiple times in a loop and that causes performance issues.

Do we have an API / endpoint, where we can assign multiple users to a new okta group as a bulk update.

At this time, there is no endpoint that is able to complete this kind of operation in bulk.

However, in your use case you mentioned that you need to assign users from one group to this newly created group. Would group rules be a fit for your needs?