AzRoleAssignment
The AzRoleAssignment
class represents a computer role assignment, where a role
assignment object contains information about an Active Directory object
(trustee—that is, user or group) that has been added to a computer role.
Syntax
public interface IAzRoleAssignment : IRoleAssignment
Methods
The AzRoleAssignment
class provides the following methods:
Method | Description |
---|---|
Commit | Commits changes in the role to Active Directory. (Inherited from [RoleAssignment] (../roleassignment/index.md).) |
ClearCustomAttributes | VBScript interface to clear the custom attributes for this class. (Inherited from [RoleAssignment] (../roleassignment/index.md).) |
Delete | Deletes the role. (Inherited from [RoleAssignment] (../roleassignment/index.md).) |
GetComputerRole | Returns the computer role that logically contains this role assignment. (Inherited from [RoleAssignment] (../roleassignment/index.md).) |
GetTrustee | Returns the trustee being assigned. (Inherited from [RoleAssignment] (../roleassignment/index.md).) |
ICustomAttributeContainer GetCustomAttributeContainer | .NET interface that returns the directory entry for the parent container object for the custom attributes for this class. (Inherited from RoleAssignment.) |
SetCustomAttribute | VBScript interface to set the custom attributes for this class. (Inherited from [RoleAssignment] (../roleassignment/index.md).) |
Validate | Validates this role assignment. (Inherited from [RoleAssignment] (../roleassignment/index.md).) |
Properties
The AzRoleAssignment
class provides the following properties:
Property | Description |
---|---|
CustomAttributes | VBScript only: Gets or sets custom attributes for this class. (Inherited from [RoleAssignment] (../roleassignment/index.md).) |
EndTime | Determines the time at which this role becomes inactive. (Inherited from [RoleAssignment] (../roleassignment/index.md).) |
Id | Gets the GUID of the role assignment. (Inherited from [RoleAssignment] (../roleassignment/index.md).) |
IsRoleOrphaned | Indicates whether the role assignment is orphaned due to missing or invalid data. (Inherited from RoleAssignment |
IsTrusteeOrphaned | Indicates whether the role assignment is orphaned due to a missing trustee. (Inherited from [RoleAssignment] (../roleassignment/index.md).) |
LocalTrustee | Gets the local trustee being assigned. (Inherited from [RoleAssignment] (../roleassignment/index.md).) |
Role | Gets the role the trustee is assigned to. (Inherited from [RoleAssignment] (../roleassignment/index.md).) |
StartTime | Specifies the time from which this role becomes effective. (Inherited from [RoleAssignment] (../roleassignment/index.md).) |
TrusteeDn | Gets the distinguished name of the trustee assigned the role. (Inherited from [RoleAssignment] (../roleassignment/index.md).) |
TrusteeType | Gets the trustee type of the role assignment. (Inherited from RoleAssignment.) |
Discussion
A computer role describes the intended use of a group of computers; for example, the set of computers dedicated as database servers. See ComputerRoles for a discussion of computer roles.