I'm working on a workflow project, where I have to get all the users in the Approvers group. In order to get the approvals group, I run the following code:
SPGroup approvals = SPContext.Current.Web.Groups["Approvers"];
However, I noticed that you can change the group name, in which case, this code would break. So, I discovered the Membership group ID for that group, which is 9. However, i'm not sure if that will be consistent across SharePoint installations. Could anyone confirm this? If not, is there a better way to get the Approvers group.
Many thanks!