Article ID: 129090, created on Jul 6, 2016, last review on Jul 6, 2016

  • Applies to:
  • Operations Automation 6.0

Symptoms

Try to use pem.addUser API request in order to create a Service User for some subscription:

curl -d@some\path\addServiceUser.xml http://localhost:8440

It can fails with the following error:

The user #XXXXXXX cannot be bound to the shared subscription #XXXXXXX

Cause

It is not possible to use subscription_id field in this API request, because related subscription is in Account-Wide mode. It is not possible to bind service users with Account-Wide subscriptions.

Resolution

  1. Check Account-Wide Services field's value in PCP > Operations > Subscriptions > YOUR_SUBSCRIPTION > General;

  2. If this field has Yes value then you need to replace subscription_id parameter with owner_account_id parameter in the API request. Make sure that you use a correct ID of Account which contains related subscription.

Request example:

<?xml version="1.0"?>
<methodCall>
  <methodName>pem.addUser</methodName>
  <params>
    <param>
      <value>
        <struct>
          <member>
            <name>owner_account_id</name>
            <value>
              <int>XXXXXXX</int>
            </value>
          </member>
          <member>
            <name>login</name>
            <value>
              <string>Your_Login/string>
            </value>
          </member>
          <member>
            <name>password</name>
            <value>
              <string>Your_Password</string>
            </value>
          </member>
          <member>
            <name>name</name>
            <value>
              <string>Your_Name</string>
            </value>
          </member>
          <member>
            <name>value</name>
            <value>
              <string>Some_Value</string>
            </value>
          </member>
          <member>
            <name>check_password_quality</name>
            <value>
              <boolean>0</boolean>
            </value>
          </member>
        </struct>
      </value>
    </param>
  </params>
</methodCall>

Please note that despite both subscription_id and owner_account_id parameters are optional, it is necessary to specify one of them. It is not allowed to specify both parameters simultaneously.

Description of pem.addUser method syntax can be found in Public API Reference - pem.addUser section.

Additional information about account-wide users can be found in Operations Automation 6.0 Release Notes - Account-Wide Users section.

Search Words

provisioning lyncv2

Account-Wide Service

Private Subscription

The user cannot be bound to the shared subscription

user cannot be bound to the shared subscription

API requst

Shared subscription

shared subscription

pem.addUser

Account-Wide Subscriptions

Account-Wide

pem.bindUserToSubscription

service user

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 956c448bddc7e1f3585373687602379f 6f1456866eed87488c0f02b298a741c0

Email subscription for changes to this article
Save as PDF