AVAILABLE WITH BUSINESS SUBSCRIPTION

Method: addGroup 

Permissions to Run the Request

Account Owner, Account Administrators, Department Administrators, or custom roles

Parameters

ParameterTypeDescription
token (required)stringAccess token. You can obtain a token by making a request.
name (required)stringThe name of the new group.
userId (optional)stringThe ID of a user.

Return Value

ParameterTypeDescription
groupIdstringThe ID of the created group.

Possible Errors

ErrorDescription
Permission deniedThe user has no permissions to add groups.
Wrong parametersThe system failed to process the request because it did not contain all necessary parameters.

Sample Call

<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="https://schemas.xmlsoap.org/soap/envelope/"
                   xmlns="https://ispringlearn.com/go/services/api/soap">
  <SOAP-ENV:Body>
      <AddGroupRequest>
         <credentials>
           <token>p-1sJDjmULL5DdpXPJTcbm4jVIaWVHvNmrjAxATRbNE</token>
         </credentials>
        <name>NEW_GROUP</name>
        <userIds>
          <id>cfe9248a-deb4-11e9-979c-0a580af40764</id>
          <id>d030ff3a-deb4-11e9-b26a-0a580af40764</id>
          <id>d07ba5f8-deb4-11e9-a6de-0a580af40764</id>
        </userIds>
      </AddGroupRequest>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
CODE

Sample Response

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="https://schemas.xmlsoap.org/soap/envelope/"
                   xmlns="https://ispringlearn.com/go/services/api/soap">
  <SOAP-ENV:Body>
    <AddGroupResult>
      <groupId>string</groupId>
    </AddGroupResult>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
CODE