Access Manager permission model

Access Manager permissions set what your app's clients can do on channels, channel groups, and user metadata. Your server grants them in a token. For what members of your organization can do in the Admin Portal, see Admin Portal roles.

Access Manager grants permissions per resource. Each token lists the resources the bearer can access and the flags that apply to each one.

Resource types and permission flags​

ResourcePermission flags
Channelread, write, delete, get, update, manage, join
Channel groupread, manage
UUID metadataget, update, delete

What each flag permits​

FlagOperations
readSubscribe to a channel or channel group. Fetch messages. List and download files. Manage push notification registrations.
writePublish and signal on a channel. Send a file to a channel. Add a message action.
deleteDelete messages from history. Delete a file. Delete metadata. Remove a message action.
getRead channel or UUID metadata. List channel members or memberships.
updateWrite channel or UUID metadata.
manageAdd or remove channels in a channel group. Delete a channel group. Set or remove channel members.
joinSet or remove channel memberships (UUID resource side).

Permissions do not cascade. A read grant on a channel group does not grant read on the individual channels in that group.

Authorized UUID​

FieldDescription
authorized_uuidOptional. Binds the token to one User ID. PubNub rejects requests using the token from any other User ID. Must match an existing User ID set during SDK initialization.

Scope​

Scope typeDescription
Exact nameGrants permission for one named resource.
RE2 patternGrants permission for all resources whose names match the pattern. Evaluated server-side. Backreferences and lookaround assertions are not supported.

Was this page useful?

Last updated on