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:

This method Does this

Commit

Commits changes in the role to Active Directory.

(Inherited from RoleAssignment.)

ClearCustomAttributes

VBScript interface to clear the custom attributes for this class.

(Inherited from RoleAssignment.)

Delete

Deletes the role.

(Inherited from RoleAssignment.)

GetComputerRole

Returns the computer role that logically contains this role assignment.

(Inherited from RoleAssignment.)

GetTrustee

Returns the trustee being assigned.

(Inherited from RoleAssignment.)

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.)

Validate

Validates this role assignment.

(Inherited from RoleAssignment.)

Properties

The AzRoleAssignment class provides the following properties:

This property Does this

CustomAttributes

VBScript only: Gets or sets custom attributes for this class.

(Inherited from RoleAssignment.)

EndTime

Determines the time at which this role becomes inactive.

(Inherited from RoleAssignment.)

Id

Gets the GUID of the role assignment.

(Inherited from RoleAssignment.)

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.)

LocalTrustee

Gets the local trustee being assigned.

(Inherited from RoleAssignment.)

Role

Gets the role the trustee is assigned to.

(Inherited from RoleAssignment.)

StartTime

Specifies the time from which this role becomes effective.

(Inherited from RoleAssignment.)

TrusteeDn

Gets the distinguished name of the trustee assigned the role.

(Inherited from RoleAssignment.)

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.