User Creation
  • 2 Minutes to read
  • Dark
    Light
  • PDF

User Creation

  • Dark
    Light
  • PDF

Article summary

The CreateUser call is used to automatically create a new user(s) with specified roles and properties. The current Data Load Rules option allows Native type users to be created only (no single sign on users). The Dimension Security API allows you to create both Native and SSO user types.

A customer supplies a data load file with user information for users to be created in Planful. A Boomi process (or any other Soap API) consumes the API to perform the required user creation and update tasks. If the user is already present in the tenant group, but mapped to another tenant, the API will map the user to that tenant. When a user is added to a tenant, the API will not update the first name, last name, and roles/properties for the user if the information differs from current user details.

Format of API String

Bool CreateUser(string firstName, string lastName, string userLogin, string navigationRole, string reportingRole, string supportRole, string authenticationType, bool isActive, string loginName, string password, string tenantCode)

Data that needs to be supplied to the API:

  • firstName – In string format

  • lastName – In string format

  • userLogin – A valid email ID (the API will check to see if the user is already mapped in the application)

  • navigationRole - Existing navigation role

  • reportingRole - Existing reporting role

  • supportRole - Existing support role type (the API validates if the number of administrators are within the allowed limit)

  • Authentication type – In string format

  • Status – In Boolean format (“false” for Inactive, “true” for Active)

  • DynamicPlanningUser - If the user is a Dynamic planning user (Yes or No)

  • DynamicPlanningRole - If the user is a Dynamic Planning user, then this field must have an appropriate Dynamic Planning Role type

  • LoginName, password and tenantCode – the credentials of the user are used to authenticate the API connection

Following is sample request and response code of a successful API call.

Sample Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.HostAnalytics.com/API/SOAP/StateFree/Common/2009/03/19">
  <soapenv:Header/>
  <soapenv:Body>
     <ns:CreateNewUser>
        <!--Optional:-->
        <ns:FirstName>NewUser</ns:FirstName>
        <!--Optional:-->
        <ns:LastName>NewUser</ns:LastName>
        <!--Optional:-->
        <ns:UserLogin>NewUser007@planful.com</ns:UserLogin>
        <!--Optional:-->
        <ns:NavigationRole>Super Admin</ns:NavigationRole>
        <!--Optional:-->
        <ns:ReportingRole>Regular User</ns:ReportingRole>
        <!--Optional:-->
        <ns:SupportRole>User</ns:SupportRole>
        <!--Optional:-->
        <ns:authenticationType>1</ns:authenticationType>
        <ns:status>1</ns:status>
        <!--Optional:-->
        <ns:DynamicPlanningUser>Yes</ns:DynamicPlanningUser>
        <!--Optional:-->
        <ns:DynamicPlanningRole>Power User</ns:DynamicPlanningRole>
        <!--Optional:-->
        <ns:LoginName>qaautomationrun4@hostanalytics.com</ns:LoginName>
        <!--Optional:-->
        <ns:Password>H@20@fAut0m@te</ns:Password>
        <!--Optional:-->
        <ns:TenantCode>BVTFullyUnifiedAPITenant</ns:TenantCode>
     </ns:CreateNewUser>
  </soapenv:Body>
</soapenv:Envelope>

Sample Response

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body>
     <CreateNewUserResponse xmlns="http://www.HostAnalytics.com/API/SOAP/StateFree/Common/2009/03/19">
        <CreateNewUserResult>
           <Success>true</Success>
           <message>User created successfully.</message>
        </CreateNewUserResult>
     </CreateNewUserResponse>
  </soap:Body>
</soap:Envelope>
Note:
Dynamic Planning User and Role are not supported through User Load in Data Load Rules.

Dynamic Planning Users and Roles are supported only in those applications where the Unified User Management is enabled. You can contact Planful Support to enable this feature in your application.

Sample Call

(“Prasanna””Lakshmi”,”klakshmi@planful.com”,”BudgetAdministrator”,”RegularUser”,”SSO”,true,”planfuluser@gmail.com”,”planfulusertest”,”QATenant”)Invalid Input - User already exists in the tenant
<CreateNewUserResult>
<Code>5</Code>
<Success>false</Success>
<message>User already exists in current tenant.</message>
</CreateNewUserResult>
	Valid Input - User created successfully
<CreateNewUserResult>
<Success>true</Success>
<message>User Created Succesfully.</message>
</CreateNewUserResult>

Invalid Cases

  • The user’s first name is null or empty

  • The user login is not a valid email, the email already exists in the tenant, or the email is present in another tenant group

  • The navigation role, reporting role, or support role is invalid

  • The authentication type is not Native or SSO. The authentication type must match the tenant authentication type


Was this article helpful?