Roles & Permissions
AmityClient
class provides a method hasPermission(_:)
which allows you to check if the current logged in user has permission to do stuff in given channel.
We determine a user's moderation capabilities based on their current role. Amity SDK has the following default roles:
Member - has no moderation privileges
Community/Channel Moderator - can assert general moderation privileges on other users
Super Moderator - can assert general moderation privileges and be exempt from moderation from other users
Global Admin (Admin Only) - can assign the roles of others, assert all moderation privileges and be exempt from moderation
A user's role can be changed via Console. Refer to Moderation, Roles & Privileges for the instructions on how to change a user's role.
The Global Admin role cannot be assigned to a user.
Below are tables for each category that show the default roles and permissions. You can create new roles and assign a specific set of permissions for each role in the ASC Console. Refer to Moderation, Roles & Privileges.
User
Permission | Global Admin | Super Moderator | Community Moderator | Channel Moderator |
---|---|---|---|---|
ASC Console Access | ✓ | ✓ | ||
Create, Edit, & Delete, Roles | ✓ | ✓ | ✓ | ✓ |
Ban & Edit User* | ✓ | |||
Exempt from filters | ✓ | ✓ | ||
Exempt from rate limits | ✓ | ✓ | ||
Exempt from mute | ✓ | ✓ | ||
Exempt from ban | ✓ | ✓ | ||
Exempt from blacklist & whitelist | ✓ | ✓ | ||
Exempt from repitition check | ✓ | ✓ |
*UserV3
Channel
Permission | Global Admin | Super Moderator | Community Moderator | Channel Moderator |
---|---|---|---|---|
Edit, Ban, Add, Remove, & Mute Channel User * | ✓ | ✓ | ✓ | |
Edit & Mute Channel* | ✓ | ✓ | ✓ | |
Edit & Delete Message* | ✓ | ✓ | ✓ | |
Edit Channel Rate Limit* | ✓ | |||
Ban, Mute, Rate limit, & Manage Users | ✓ | ✓ | ✓ | |
Mute Channels | ✓ | ✓ | ✓ | |
Rate Limit Channels | ✓ | ✓ | ✓ | |
Manage Messages | ✓ | ✓ | ✓ | |
Global Access | ✓ | ✓ |
*ChannelV3
Community
Permission | Global Admin | Super Moderator | Community Moderator | Channel Moderator |
---|---|---|---|---|
Create, delete, Edit Community Categories | ✓ | ✓ | ✓ | |
Edit & Delete Communities* | ✓ | ✓ | ✓ | |
Edit, Add, Ban, & Remove Community Users* | ✓ | ✓ | ✓ | |
Edit, Delete, & Review Community Posts* | ✓ | ✓ | ✓ | |
Edit & Delete Community Comments* | ✓ | ✓ | ✓ | |
Manage Community | ✓ | ✓ | ✓ |
*CommunityV3
There is no limit to the number of moderators in a community. If there are 100 members in the community, all 100 members can be promoted to moderator. Promoting a user to a community-level moderator can be done using the Update Role API or through the SDK.
User Feed, Posts, Comments, & Notifications
Permission | Global Admin | Super Moderator | Community Moderator | Channel Moderator |
---|---|---|---|---|
Edit & Delete User Feed Post | ✓ | ✓ | ✓ | |
Edit & Delete User Feed Comment | ✓ | ✓ | ✓ | |
Manage Posts & Comments | ✓ | ✓ | ✓ | |
Manage Network Settings | ✓ | ✓ | ✓ | ✓ |
Permissions
Each role can be assigned with many permissions. Below is a list of all the possible permissions that can be assigned to a user.
Source | Permission | Description |
Channel |
| Can mute/unmute channel |
| Can close channel | |
| Can edit channel | |
| Can set rate limit of channel | |
| Can edit all messages | |
| Can delete all messages | |
| Can ban/unban user from channel | |
| Can mute/unmute user in channel | |
| Can add users to channel | |
| Can add remove user from channel | |
| Can edit users in channel | |
User |
| Can global ban/unban user |
| Can edit users | |
| Can assign role to users | |
User feed |
| Can edit all posts on user feed |
| Can delete all posts in user feed | |
| Can edit all comments on user feed | |
| Can delete all comments in user feed | |
Community |
| Can add users to community |
| Can remove users from community | |
| Can edit users in community | |
| Can ban users in community | |
| Can mute users in community | |
| Can edit community | |
| Can delete community | |
| Can edit all posts in community feed | |
| Can delete all posts in community feed | |
| Can edit all comments in community feed | |
| Can delete all comments in community feed | |
| Can review community post | |
Community Category |
| Can create new community categories |
| Can edit community categories | |
| Can delete community categories | |
Network |
| Can create new roles |
| Can edit roles | |
| Can delete roles | |
Notification |
| Can manage notification settings |
Last updated