Skip to main content

Last updated: 2024-06-07


GetUserLicense Method


In this topic:


Overview


The GetUserLicense method returns the names and IDs of licenses enabled for a particular SmartOffice user account.


The GetUserLicense method is invoked using the method operation.


Parameters


Parameter NameTypeRequired?Description
UserIDStringYesThis is the object ID of the SmartOffice user account.

Example


The following example request retrieves the licenses for the user account with object ID User.1.2:


XML
<request version='1.0'>
  <header>...</header>
  <method>
    <GetUserLicense>
      <UserID>User.1.2</UserID>
    </GetUserLicense>
  </method>
</request>

The response returns the list of licenses:


XML
<response version="1.0">
  <header>
    <sessionClosed/>
  </header>
  <method>
    <GetUserLicense>
      <User id="User.1.2" _type="obj">
        <Licenses _type="objs">
          <License id="License.1.2.48" _type="obj">
            <Name>extra.fields</Name>
          </License>
          <License id="License.1.2.44" _type="obj">
            <Name>CTMCarrierInterface</Name>
          </License>
          <License id="License.1.2.56" _type="obj">
            <Name>layoutcust.admin</Name>
          </License>
          <License id="License.1.2.22" _type="obj">
            <Name>policy</Name>
          </License>
          <License id="License.1.2.23" _type="obj">
            <Name>event.managment</Name>
          </License>
          <License id="License.1.2.26" _type="obj">
            <Name>agency.manager</Name>
          </License>
          <License id="License.1.2.16000" _type="obj">
            <Name>Named.User</Name>
          </License>
        </Licenses>
      </User>
    </GetUserLicense>
  </method>
  <_status>OK</_status>
  <_systime>2015-06-12T17:48:55</_systime>
  <!--Cost 145 mill seconds.-->
</response>