Skip to content

manage Permission

Request

Manage User Permission for the existing user in the system. This will remove the permission mapped earlier and the current request permissions will be considered always.

Security
bearerAuth
Path
loginIdstringrequired

loginId (Example: admin)

Bodyapplication/json

list of permission is a required field. Allowable permission are system_admin, edit_policy, create_project, library_manager

permissionsArray of stringsrequired

permissions

curl -i -X PUT \
  'https://codeinsightapi.redocly.app/_mock/swagger/users/{loginId}/permission' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "permissions": [
      "string"
    ]
  }'

Responses

OK