GrantState

Description

The GrantState enumeration describes privilege or role assignments for a user. The GrantState type parameters are listed below.

Parameters

Name Type Description
INHERITED string Denotes that the privilege is inherited from a parent entity.
REVOKED string Denotes that the privilege or role is disabled.
GRANTED string Denotes that the privilege or role is enabled.

Usage

Use the GrantState enumeration to enable, disable, or inherit privileges or role assignments. The GrantState enumeration is also returned by various calls that retrieve information about privileges or role assignments.

XML

The following XML shows GrantState in the <urn:access> element of the SetUserPrivileges call.

<urn:privilege>
    <urn:privilegeId>
        <urn:name>TS_USRPRJPRIV_DELETE</urn:name>
    </urn:privilegeId>
    <urn:access>GRANTED</urn:access>
    <urn:objectId>
        <urn:displayName>IM Project</urn:displayName>
    </urn:objectId>
</urn:privilege>