Share via


Parsing Unified Communications Policy

The unified communications (UC) policy specifies how a user’s UC-enabled phone calls are handled. This includes whether simultaneous ringing and call-forwarding are allowed and whether the user can transfer or park a call, place a team call, and assign a delegate to answer calls, and email tracing of malicious calls. In the UCMA, the settings are exposed as a collection of name-value pairs known as the properties of the UC policy configuration.

The following code example shows how a UC policy configuration might be parsed.

        string ParseUCPolicyConfiguration(ProvisioningData data)
        {
            if (data == null)
                return null;

            string msg = null;

            if (data.UCPolicyConfiguration != null && data.UCPolicyConfiguration.Properties != null)
            {
                msg += "\r\nUCPolicyConfiguration:\r\n";
                foreach (string key in data.UCPolicyConfiguration.Properties.Keys)
                {
                    msg += "\tProperty[ " + key + " ] = " + data.UCPolicyConfiguration.Properties[key] + "\r\n";
                }
            }

            return msg;
        }

The following is an example output from the code snippet above:

UCPolicyConfiguration:
Property[ allowsimultaneousringing ] = true
Property[ name ] = Users in My Domain
Property[ enablecalltransfer ] = true
Property[ enablecallpark ] = true
Property[ enablebwpolicyoverride ] = false
Property[ allowcallforwarding ] = true
Property[ enableteamcall ] = true
Property[ enabledelegation ] = true
Property[ enablemaliciouscalltrace ] = false