![]() ![]() |
Reference Type: Controlled Subscription, Category: User, ICR#: 2120
The $$KCHK^XUSRB extrinsic function checks to see if a user holds a given security key.
$$KCHK^XUSRB(key[,ien])
key: |
(required) The name of the security key to be checked. |
ien: |
(optional) Internal Entry Number (IEN). It defaults to DUZ. |
returns: |
Returns:
|
The following example illustrates the results when a user holds a security key input:
>S X=$$KCHK^XUSRB("XUPROGMODE") >W X 1 |
The following example illustrates the results when a user does not hold the security key input:
>S X=$$KCHK^XUSRB("XUMGR") >W X 0 |
The following example illustrates the results when checking if another user holds a security key input by including their IEN:
>S X=$$KCHK^XUSRB("XUPROGMODE",30) >W X 1 |