Roles & Permissions
AmityClientclass 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:
- 1.Member - has no moderation privileges
- 2.Community/Channel Moderator - can assert general moderation privileges on other users
- 3.Super Moderator - can assert general moderation privileges and be exempt from moderation from other users
- 4.Global Admin (Admin Only) - can assign the roles of others, assert all moderation privileges and be exempt from moderation
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.
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.
Each role can be assigned with many permissions. Below is a list of all the possible permissions that can be assigned to a user.