# Webservice account creation for the hierarchy role request

**URL:** <https://developer.sailpoint.com/discuss/t/webservice-account-creation-for-the-hierarchy-role-request/80678>\
**Category:** SHF Discussion and Questions\
**Tags:** webservice-connector, provisioning, apis, identity-security-cloud\
**Created:** [September 10, 2024, 11:35am UTC](https://developer.sailpoint.com/discuss/t/webservice-account-creation-for-the-hierarchy-role-request/80678 "2024-09-10T11:35:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shonnegowda](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@Shonnegowda](https://developer.sailpoint.com/discuss/u/Shonnegowda)\
**Post date:** [September 10, 2024, 11:35am UTC](https://developer.sailpoint.com/discuss/t/webservice-account-creation-for-the-hierarchy-role-request/80678/1 "2024-09-10T11:35:34Z")

</div>

Hi team,

We’re planning to implement webservice VA connector for one of the cloud applications. Account creation will be done using role request. Role is of array of objects. How this can be designed in SailPoint IdentityNow? I’ve provided postman sample for create user and get role API  
**Create User payload:**

```json
[
  {
    "userName": "atestuser1",
    "password": "Password123!",
    "name": {
      "firstName": "Test",
      "middleName": "A",
      "lastName": "User1",
      "displayName": "Test User1"
    },
    "email": "atestuser1@localhost.local",
    "phoneNumber": "555-555-5555",
    "roles": [
      {
        "type": "Close",
        "value": "CloseAdmin"
      },
      {
        "type": "Certification",
        "value": "Reconciler"
      },
      {
        "type": "Certification",
        "value": "ProgramAdmin"
      },
      {
        "type": "JournalEntry",
        "value": "Preparer"
      }
    ],
    "userAccess": {
      "r2RReadOnly": true,
      "r2RAdmin": false,
      "r2REnabled": true,
      "accessClose": true,
      "accessCompliance": true
    },
    "departmentId": "SALES",
    "locationId": "Americas",
    "programAdminId": "Admin"
  },
  {
    "userName": "atestuser2",
    "password": "Password345!",
    "name": {
      "firstName": "Test",
      "middleName": "A",
      "lastName": "User2",
      "displayName": "Test User2"
    },
    "email": "atestuser2@localhost.local"
  }
]

**Get Roles response from postman** 

[
  {
    "type": "Close",
    "value": "CloseAdmin"
  },
  {
    "type": "Certification",
    "value": "Reconciler"
  },
  {
    "type": "JournalEntry",
    "value": "Preparer"
  }
]

```

---

<div class="post-metadata">

**Author:** ![mpotti](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/mpotti/32/2916_2.png) [@mpotti](https://developer.sailpoint.com/discuss/u/mpotti)\
**Post date:** [September 10, 2024, 11:46am UTC](https://developer.sailpoint.com/discuss/t/webservice-account-creation-for-the-hierarchy-role-request/80678/2 "2024-09-10T11:46:17Z")

</div>

For this one you will need to define each operation in which you want to call on the WebServices Connector. You could also look at building your own connector using the SDK’s from SailPoint. When using the web services connector you will most likely have to build custom rules to apply to the response that are returned in you API calls. Please let us know if this helps.

## Custom Connector:

> **[SaaS Connectivity | SailPoint Developer Community](https://developer.sailpoint.com/docs/connectivity/saas-connectivity)**
>
> Cloud-based connectivity without VAs.

## Tools:

> **[Tools | SailPoint Developer Community](https://developer.sailpoint.com/docs/tools)**
>
> ISC developer tools.

---

<div class="post-metadata">

**Author:** ![schattopadhy](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/schattopadhy/32/8854_2.png) [@schattopadhy](https://developer.sailpoint.com/discuss/u/schattopadhy)\
**Post date:** [September 10, 2024, 2:02pm UTC](https://developer.sailpoint.com/discuss/t/webservice-account-creation-for-the-hierarchy-role-request/80678/3 "2024-09-10T14:02:26Z")

</div>

@Shonnegowda is there any API to get the all roles object available.  
If yes please configure the below steps

1- Create an operation entitlement aggregation  
2- Create an entitlement multivalued attribute in the account schema  
3- Add the entitlement schema in entitlement type  
4-Run the entitlement aggregation to get all groups  
5-Setup create profile  
6-Setup Add entitlement and Create account .  
7- Request the role and check if it works

Let me know if you face any issues

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [November 9, 2024, 2:02pm UTC](https://developer.sailpoint.com/discuss/t/webservice-account-creation-for-the-hierarchy-role-request/80678/4 "2024-11-09T14:02:37Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
