AttackForge Enterprise & AttackForge Core
Powered By GitBook
UpdateUserAccessOnProject
This method can be used for the following functionality: Update a users' access on a project.

Parameters

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.

Headers

1
PUT /api/ss/project/:project_id/access/:user_id HTTP/1.1
2
Host: demo.attackforge.com
3
X-SSAPI-KEY: APIKey
4
Content-Type: application/json
5
Connection: close
Copied!

Query

project_id (string)
Id of the project.
Example:
1
PUT /api/ss/project/5e64179c899bb708b55ea48c/access/:user_id HTTP/1.1
Copied!
user_id (string)
Id of the user.
Example:
1
PUT /api/ss/project/:project_id/access/5e68a59fbfc6890c16dd2f55 HTTP/1.1
Copied!
update (string)
Permissions on the project. Must be one of the following: View, Upload, Edit, Delete, Restore. If you select Delete the user will be removed from the project. If you select Restore the user will be restored on the project with prior permissions.
Example:
1
{
2
"update": "Edit"
3
}
Copied!

Example

The following example is a cURL request to update a users' access to Edit on a project.

Request

Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.
1
curl -X PUT 'https://demo.attackforge.com/api/ss/project/5e64179c899bb708b55ea48c/access/5e68a59fbfc6890c16dd2f55' -H 'Host: demo.attackforge.com' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close' -d '{
2
"update": "Edit"
3
}'
Copied!

Response

Response contains a status.
1
{
2
"status": "User Access Updated"
3
}
Copied!
Last modified 1yr ago