QueryUserPolicy

The QueryUserPolicy function returns an XML fragment containing the policy assigned to the specified user (the Key) based on server configuration.

Syntax

  Copy imageCopy Code
string QueryUserPolicy(
  string or Uri Key,
  bool KeyIsPhone
);

Parameters

Key

The identity of the user. Can be a SIP URI, a user URI in the form user@host, a user URI in the form user@host;user=phone, or a telephone number.

KeyIsPhone

Optional. The value is true if the Key is a phone; otherwise, false.

Return Values

Returns an XML fragment containing the policy assigned to the specified user (the Key) based on server configuration.