UserGroups
Add Users to User Groups
Add one or more users to an existing user group using the following endpoint:
POST /api/v2/UserGroups/{userGroupGuid}/addUsers
Replace {userGroupGuid} with the userGroupGuid value of the user group you want to add users to. You can get the userGroupGuid for a user group from the User Groups section under Settings in the FortiCNAPP platform.
In the request body, specify the users to add to the group as an array of user IDs.
Here is an example body payload:
{"userGuids": ["some_user_id"]}
See Add Standard Users to a User Group for more information.
post/api/v2/UserGroups/{userGroupGuid}/addUsers
Path parameters
userGroupGuidstring required
User Group ID
Headers
Authorizationstring required
Bearer Access Token. For example, "Bearer {YourAPIToken}"
Content-Typestring required
application/json
Request body
Response
No Error