Difference
Administrators have all the privileges for the domain they describe, with only one notable exception.
- They cannot appoint or remove other administrators.
For example, "Site Administrator" receives all rights to this site, except that it again appoints other site administrators.
In your use case, I would create another role.
Another question: if I create a new role and assign all permissions and just delete several, will this affect performance?
No. Think that there are two more roles, โguestโ and โparticipantโ, which are much more often used in the process of use, which will require a search in the same way as your new user role.
But can you tell me exactly what permissions are allowed between the site owner and the site administrator?
All signs indicate that they are hardcoded, since there are methods in PermissionChecker with methods such as isSiteAdmin , isSiteOwner , isOmniAdmin , etc., these methods check whether the User has these roles and allows them to perform this specific action.
Typically, the following steps allow you to assign a role to a user:
- Group permission with the "Assign User Roles" action
- Role permission with the "Assign Participants" action
However, even if you expose these actions to some other role, you still cannot make people "Site Administrators" or "Site Owners" without being "Site Owner"
source share