R34492 GroupMember – Only Admin Deletion Not Allowed
Code | R34492 |
Entity | Communities.Social.GroupMembers Entity |
Name | OnlyAdminDeletionNotAllowed |
Attribute | - |
Layer | Back-End |
Events | Commit |
Record State | Deleted |
Priority | Normal |
Modify | NO |
Action | if (GroupMember.Role == Admin) , then check: if (Count (GroupMembers, where SocialGroup == GroupMember.SocialGroup && Role == Admin ) == 1) , then FAIL |
Description | If a group member is the only admin of the group, they are not allowed to leave the group or remove themselves as a member. |
Message | You cannot leave '{SocialGroup.DisplayText}' because you are the only admin of
the group.
There must be at least one admin in the group. |
Version | Introduced: |
Revocable | NO |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.