Use this method to assign multiple users to all orgs in a group as group memebers
- Get group level service account token with admin permissions
- Check if list of users is already a group member or has accepted the invite.
- If not, must invite user to snyk at org level.
Note: Check if the email user has accepted (can see by email and user ID from the API call in 2.1 above). If there’s a user ID then you know they accepted and can move forward. Need to check this every day, few hours, whatever frequency desired (run the API calls over some frequency).
-
Then, iterate over the list of orgs in the group and add user to each org (using user ID) with the Add a member to an organization within a group api call
Decision tree: