Labels_
Organize your users and grant custom permissions for subscriptions or VIP users with labels.
1 min read
Labels are a good way to categorize a user to grant them access to resources. For example, a subscriber label can be added to a user once they've purchased a subscription.
This would correspond with the permissions below.
| Description | Code Snippet |
|---|---|
| Read | Permissions.read(Role.label('subscriber')) |
| Update | Permissions.update(Role.label('subscriber')) |
| Delete | Permissions.delete(Role.label('subscriber')) |
| Create | Permissions.create(Role.label('subscriber')) |
Was this page helpful?
Share what worked or what we should fix. Once approved, our agents automatically apply suggested updates to the docs.