SkillhabitDocs

User Access

Grant or revoke admin, manager, and application access for user accounts.

POST
/users/{userId}/access/{action}

Adds or removes access to one Skillhabit application for the user. action controls whether the selected application is added or removed. Supported applicationId values are achievements, analyse, create, learn, and follow-up.

AuthorizationBearer <token>

A JSON Web Token

In: header

Path Parameters

userId*string

User id whose application access should be updated.

action*string

Access update action.

Value in

  • "ADD"
  • "REMOVE"

Request Body

application/json

Application access request.

TypeScript Definitions

Use the request body type in TypeScript.

Request to grant or revoke access to one Skillhabit application.

Response Body

application/json

curl -X POST "https://example.com/users/7f9c2a1e-4b8d-4f6a-9c2e-1d3b5a7e9c01/access/ADD" \  -H "Content-Type: application/json" \  -d '{}'
Empty
POST
/users/{userId}/make-admin/{endow}

Grants or revokes administrator rights for a user. Use endow=true to grant admin access and endow=false to revoke it.

AuthorizationBearer <token>

A JSON Web Token

In: header

Path Parameters

userId*string

User id whose admin access should be updated.

endow*boolean

true grants admin access; false revokes admin access.

Response Body

application/json

curl -X POST "https://example.com/users/7f9c2a1e-4b8d-4f6a-9c2e-1d3b5a7e9c01/make-admin/true"
Empty
POST
/users/{userId}/make-manager/{endow}

Grants or revokes manager rights for a user. Use endow=true to grant manager access and endow=false to revoke it.

AuthorizationBearer <token>

A JSON Web Token

In: header

Path Parameters

userId*string

User id whose manager access should be updated.

endow*boolean

true grants manager access; false revokes manager access.

Response Body

curl -X POST "https://example.com/users/7f9c2a1e-4b8d-4f6a-9c2e-1d3b5a7e9c01/make-manager/true"
Empty