CanGrantTokenRequest

(Control Token Manager)

Description: Returns TRUE if the user is allowed to grant a token request.
Returns: Boolean
Usage: Script or steady state.
Function Groups:

(Control Token Manager)

Related to:

CanControl (Control Token Manager) | CanDenyTokenRequest | CanGrantTokenRequest | CanReleaseToken | CanRequestToken | DenyTokenRequest | GetToken (Control Lock Module) | GetTokenLevel | GrantTokenRequest | ReleaseToken | RequestToken |

Format: \ControlTokenManager.CanGrantTokenRequest(TagID[, SessionID, AccountID, MachineID])
Parameters:  
TagID
Required text. The UniqueIDof the tag for which a token request should be granted.
SessionID
Optional text. Defaults to the current Session ID if not specified. Used when checking whether a control token is already held.
AccountID
Optional text. Defaults to the current user Account ID. Used when checking whether a control token is already held.
MachineID
Optional text. Defaults to the current user Machine ID. Used when checking whether a control token is already held.
Comments:

The person granting the request must own the existing token, or have control over the tag for which the request is being made, or have token admin privileges. Returns FALSE otherwise.