Me Permissions
GET
/auth/me/permissions/
const url = 'https://example.com/api/auth/me/permissions/';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/auth/me/permissions/ \ --header 'Authorization: Bearer <token>'Return the effective permissions for the currently authenticated user.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Successful Response
Media type application/json
PermissionsResponse
object
permissions
required
Permissions
Map of permission names to granted/denied
object
key
additional properties
boolean
Example generated
{ "permissions": { "additionalProperty": true }}