You can programmatically administer users and user groups, and
the permissions granted to them in the group chat system, using the
procedures described in the following table.
Task
|
Procedure
|
Create federated user groups
|
-
Obtain a reference to
GroupChatUserAdministrationServices
.
-
Invoke
BeginCreateFederatedUserGroup(String, AsyncCallback, Object)
.
|
Create federated users
|
-
Obtain a reference to
GroupChatUserAdministrationServices
.
-
Obtain a reference to the
GroupChatFederatedUserGroup
, where the user should be placed.
-
Construct an instance of
GroupChatFederatedUserSettings
.
-
Invoke
BeginCreateFederatedUser(GroupChatFederatedUserSettings,
AsyncCallback, Object)
.
|
Move a federated user to a new federated user group
|
-
Obtain a reference to
GroupChatUserAdministrationServices
.
-
Obtain a reference to the
GroupChatFederatedUser
.
-
Obtain a reference to the
GroupChatFederatedUserGroup
, where the user should be placed.
-
Invoke
BeginMoveFederatedUser(GroupChatFederatedUser,
GroupChatFederatedUserGroup, AsyncCallback, Object)
.
|
Delete a federated user group
|
-
Obtain a reference to
GroupChatUserAdministrationServices
.
-
Obtain a reference to the
GroupChatFederatedUserGroup
.
-
Move all federated users from this group into a different
federated user group.
-
Invoke
BeginDeleteFederatedUserGroup(GroupChatFederatedUserGroup,
AsyncCallback, Object)
.
|
Update a group chat user or user group permissions
|
-
Obtain a reference to
GroupChatUserAdministrationServices
.
-
Obtain a reference to the
GroupChatUser
or
GroupChatUserGroup
.
-
Construct an instance of
GroupChatUserInformation
or
GroupChatUserGroupInformation
.
-
Update the permissions of the principal.
-
Invoke
BeginUpdateUserOrGroupInformation(GroupChatPrincipalInformation,
AsyncCallback, Object)
.
|
Update a federated user or federated user group properties
|
-
Obtain a reference to
GroupChatUserAdministrationServices
.
-
Obtain a reference to the
GroupChatFederatedUser
or
GroupChatFederatedUserGroup
.
-
Construct an instance of
GroupChatFederatedUserInformation
or
GroupChatFederatedUserGroupInformation
.
-
Update the properties of the principal.
-
Invoke
BeginUpdateUserOrGroupInformation(GroupChatPrincipalInformation,
AsyncCallback, Object)
.
|