SecRole Class

The SecRole class contains methods that you can use to manage security roles.

There are no properties for this class.

For more information about using XML, see XML Document Object Model.


[Visual Basic .NET]
Public Class SecRole
   Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
public class SecRole : System.Web.Services.Protocols.SoapHttpClientProtocol
public __gc class SecRole: public System.Web.Services.Protocols.SoapHttpClientProtocol

The SecRole class exposes the following methods.

Method Description
AddPrivileges Adds a set of existing privileges to an existing role.
AssignUserRoles Adds an existing user to an array of existing roles.
AssignUsersToRoles Adds an array of existing users to an array of existing roles.
ChangeName Changes the name of an existing role.
Create Creates a new role.
CreateAndRetrieve Creates a new role and then returns the complete XML data for the newly created role.
Delete Deletes a role.
RemovePrivilege Removes a privilege from an existing role.
RemoveUserRoles Removes an existing user from an existing role.
ReplacePrivileges Replaces the privilege set of an existing role.
Retrieve Retrieves a role.
RetrieveAllRoles Retrieves all roles for the specified business unit.
RetrieveIdFromName Retrieves the ID for the role with a specified name in a specified business unit.
RetrieveRolePrivileges Retrieves the privileges that are assigned to the specified role.
RetrieveRoleUsers Retrieves the users that are assigned to the specified role.
RetrieveUserRoles Retrieves all roles for the specified user.


Namespace: Microsoft.CRM.Proxy

Assembly: microsoft.crm.proxy.dll

See Also

© 2003 Microsoft Corporation. All rights reserved.