Skip to main content

Create and update groups

Log in to add to favourites
C#
1
2
3
public Group New(string groupName, GroupType groupType) { }
C#
1
2
3
4
5
6
7
8
9
10
11
12
13
using Zengenti.Contensis.Management; // Create a client var client = ManagementClient.Create(); // Initialize the group Group group = client.Security.Groups.New("Fight Club Members", GroupType.Contensis); // Create the group group.Save(); // Create the group asynchronously await group.SaveAsync();
C#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using Zengenti.Contensis.Management; // Create a client var client = ManagementClient.Create(); // Get an existing group Group group = client.Security.Groups.Get("Fight Club Members"); // Update group details group.Description = "Members of Fight Club"; // Update the group group.Save(); // Update the group asynchronously await group.SaveAsync();

Still need help?

New support request