Ingress User Group Members
User Groups can be used for various purposes including organizing your Users in your Organization. They can be used to hide or limit custom fields, statuses and policy statuses, they can even be used to grant Inherited Abilities to a User instead of having to add Abilities Directly to a User!
Endpoint: /api/ingress/user_group_members
Methods: POST
,PUT
,DELETE
API Version Support: v1
Security Notice: Please make sure to use API | Endpoint Protection when giving this access to third party systems as API Keys are unprotected unless specified.
The proper endpoint protection to set for an API using this Endpoint is /api/ingress/user_group_members
Data Formats Supported
form-data
, x-www-form-urlencoded
Form Parameters or JSON Body with Content-Type: application/json
set.
Response Codes
200: Success and Warnings
400: Error
Add: Add User Group Membership
This will attempt to add user group memberships to the users provided. If they already have a membership it will do nothing.
Method: POST
Parameter | Required | Format | Description | Aliases |
---|---|---|---|---|
| ✓ | csv|int|array - User IDs | One or more User IDs |
|
| ✓ | csv|int|array - Mixed Tag ID’s or Tag Names | One of more Group IDs |
|
JSON Request Body
{
"group_id": [ 10, 11 ],
"user_id": [ 15, 248 ]
}
JSON Success Body
{
"message": "4 User Groups were Added for 2 Users.",
"added": 4
}
JSON Warning Body
{
"message": "No User Groups were Added.",
"added": 0
}
Replace: Replace User Group Memberships
This will attempt to replace user group memberships to the users provided. It will drop groups that are not provided and add groups that are missing.
Endpoint: /api/ingress/user_group_members
Method: PUT
Parameter | Required | Format | Description | Aliases |
---|---|---|---|---|
| ✓ | csv|int|array - User IDs | One or more User IDs |
|
| ✓ | csv|int|array - Mixed Tag ID’s or Tag Names | One of more Group IDs |
|
JSON Request Body
JSON Success Body
JSON Warning Body
Remove: Remove User Group Memberships
This will attempt to remove user group memberships from the users provided. If they do not have a membership it will do nothing.
Endpoint: /api/ingress/user_group_members
Method: DELETE
Parameter | Required | Format | Description | Aliases |
---|---|---|---|---|
| ✓ | csv|int|array - User IDs | One or more User IDs |
|
| ✓ | csv|int|array - Mixed Tag ID’s or Tag Names | One of more Group IDs |
|
JSON Request Body
JSON Success Body
JSON Warning Body
Drop: Drop User Group Memberships
This will attempt to drop all user group memberships from the users provided. If they do not have any memberships it will do nothing.
Endpoint: /api/ingress/user_group_members/drop
Method: DELETE
Parameter | Required | Format | Description | Aliases |
---|---|---|---|---|
| ✓ | csv|int|array - User IDs | One or more User IDs |
|
| ✓ | csv|int|array - Mixed Tag ID’s or Tag Names | One of more Group IDs |
|
JSON Request Body
JSON Success Body
JSON Warning Body
Errors Possible
Error | Resolution |
---|---|
No API ID Provided | Check API ID in Header or Parameters. See API | Using API ID and API Key |
No API Key Provided | Check API Key in Headers or Parameters. See API | Using API ID and API Key |
Missing User IDs | Check |
Could not Find Users | Check |
Users Found does not match Users Requested | Check |
Missing User Group IDs | Check |
Could not Find User Groups | Check |
User Groups Found does not match User Groups Requested | Check |