Appearance
Insufficient permissions
The following details provide a summary of the Insufficient permissions
error, explain the cause, and present recommended solutions.
What happens
Each user in a CalypsoAI environment is assigned a role with specific permissions for actions they can and can't do. When you send a request to a CalypsoAI endpoint to access a resource for which you do not have the required permissions, the request fails.
The following fragment of a full error response shows you the key part.
python
calypsoai.clients.base.RequestError: 'GET http://0.0.0.0:5501/backend/v1/campaigns'
responded with status 403
Insufficient permissions, requires 'organization:org_u03cLtz5lHdtAPsp:red_team'
1
2
3
2
3
The error message states that you require the organization:org_u03cLtz5lHdtAPsp:red_team
role to access the required method and send your request.
Why it happens
Certain endpoints and methods are accessible only to users who have the required permissions, which are set up by your CalypsoAI administrator. This can be for security reasons and also based on the scope of a user's role in the organization.
The CalypsoAI API requires a user to have the necessary permissions for the request they want to send. If you do not have the required permissions, the request fails and responds with the Insufficient permissions
error.
How to fix it
To resolve the issue, contact your CalypsoAI administrator.