Users

C# Methods for Core > Users

AddGroup

Creates a new group with the given name

0.2.4
public bool AddGroup(string groupName)

AddUserIdToGroup

Add a user, by ID, to a group

0.2.3
public bool AddUserIdToGroup(string userId, Platform platform, string groupName)

AddUserToGroup

Add a user, by username, to a group

0.2.3
public bool AddUserToGroup(string userName, Platform platform, string groupName)

ClearUsersFromGroup

Remove all users from a group

0.2.3
public bool ClearUsersFromGroup(string groupName)

DeleteGroup

Deletes the group matching the provided name

0.2.4
public bool DeleteGroup(string groupName)

GetGroups

Returns a list of all available groups

0.2.4
public List<string> GetGroups()

GroupExists

Returns bool verifying existence of a group, by name

0.2.4
public bool GroupExists(string groupName)

RemoveUserFromGroup

Remove a user, by username, from a group

0.2.3
public bool RemoveUserFromGroup(string userName, Platform platform, string groupName)

RemoveUserIdFromGroup

Remove a user, by ID, from a group

0.2.3
public bool RemoveUserIdFromGroup(string userId, Platform platform, string groupName)

UserIdInGroup

Check if a user, by ID, is a member of a group

0.2.3
public bool UserIdInGroup(string userId, Platform platform, string groupName)

UserInGroup

Check if a user, by username, is a member of a group

0.2.3
public bool UserInGroup(string userName, Platform platform, string groupName)

UsersInGroup

Fetch a list of users in a group

0.2.3
public List<GroupUser> UsersInGroup(string groupName)