SecRole Class
The SecRole class contains methods that you can use to manage security roles.
There are no properties for this class.
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Web.Services.Protocols.WebClientProtocol
System.Web.Services.Protocols.HttpWebClientProtocol
System.Web.Services.Protocols.SoapHttpClientProtocol
SecRole
[Visual Basic .NET]
Public Class SecRole
Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
[C#]
public class SecRole : System.Web.Services.Protocols.SoapHttpClientProtocol
[C++]
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. |
Requirements
Namespace: Microsoft.Crm.Platform.Proxy
Assembly: Microsoft.Crm.Platform.Proxy.dll
See Also