AddUserToGroup
This method can be used for the following functionality: Add a user to a group.
The following URL, Headers and Parameters are required for requests to this API endpoint. Where a parameter is optional, it will be indicated. Otherwise treat all parameters as mandatory.
POST /api/ss/group/user HTTP/1.1
Host: demo.attackforge.com
X-SSAPI-KEY: APIKey
Content-Type: application/json
Connection: close
group_id (string)
Id of the group.
Example:
{
"group_id": "..."
}
user_id (string)
Id of the user.
Example:
{
"user_id": "..."
}
access_level (string)
Default access level to all group projects. Must be one of the following: View, Upload, Edit
Example:
{
"access_level": "View"
}
The following example is a cURL request to add a user to a group with View access to all group projects.
Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.
curl -X POST 'https://demo.attackforge.com/api/ss/group/user' -H 'Host: demo.attackforge.com' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close' -d '{
"group_id": "5eab99471e18050942c7607a",
"user_id": "5e68a59fbfc6890c16dd2f55",
"access_level": "View"
}'
Response contains a status.
{
"status": "User Added To Group"
}
Last modified 2yr ago