"data": [
{
"type": "user_accounts",
"id": "7364d30b-94616c72",
"attributes": {
"display_name": "hello User",
"email": "hellouser@abc.com",
"first_name": "Hello",
"last_name": "user",
"locale": "en_US",
"timezone": "UTC",
"language": "en-us",
"active": null,
"created_at": "2024-05-18T06:09:54.077Z",
"updated_at": "2024-05-18T06:12:24.724Z",
"assignable": false,
"invite_token_expires_at": null,
"active_status": "LOCKED",
"password_reset_token_expires_at": null,
"homepage_preferences": {},
"phone_number": null,
"engagement_manager": false,
"pagerduty_id": null,
"default_filter": "ALL",
"sfdc_id": "xxxxxxxxxxxxx",
"show_highlighting": true,
"show_new_nav": true,
"notifications_enabled": true
},
1. Accounts should import from 2nd call only
2. It should fetch the role name from first call entitlementparms that should be requestable
3. it should map the accounts and roles in accentparms
{
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "
https://workbench.expel.io/api/v2/user_account_roles",
"httpHeaders": {
"Authorization": "Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
},
"httpContentType": "application/x-www-form-urlencoded",
"httpMethod": "GET"
},
"listField": "data",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "id~#~char",
"name": "id~#~char"
},
"disableDeletedAccounts": true
},
"call2": {
"callOrder": 1,
"stageNumber": 3,
"http": {
"url": "
https://workbench.expel.io/api/v2/user_account_roles/${id}/user_account",
"httpHeaders": {
"Authorization": "Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"Accept": "*/*"
},
"httpContentType": "application/vnd.api+json",
"httpMethod": "GET"
},
"inputParams": {
"dependentCall": true
},
"listField": "data",
"keyField": "accountID",
"nextApiKeyField": "accountID",
"colsToPropsMap": {
"accountID": "id~#~char",
"name": "attributes.display_name~#~char",
"status": "attributes.active~#~char",
"accounttype": "type~#~char",
"customproperty1": "attributes.first_name~#~char",
"customproperty2": "attributes.last_name~#~char",
"customproperty3": "attributes.active~#~char",
"customproperty4": "attributes.last_active~#~char",
"customproperty5": "attributes.email~#~char",
"customproperty6": "attributes.active_status~#~char"
},
"pagination": {
"offset": {
"offsetParam": "page[offset]",
"batchParam": "page[limit]",
"batchSize": 28,
"currentOffset": 0,
"totalCountPath": "28"
}
}
}
}
},
"entitlementParams": {
"showResponse": true,
"processingType": "SequentialAndIterative",
"entTypes": {
"Roles": {
"entTypeOrder": 0,
"entTypeLabels": {},
"call": {
"call1": {
"connection": "acctAuth",
"callOrder": 0,
"stageNumber": 0,
"http": {
"httpHeaders": {
"Authorization": "Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
},
"url": "
https://workbench.expel.io/api/v2/user_account_roles",
"httpContentType": "application/json",
"httpMethod": "GET",
"successResponses": {
"statusCode": [
200,
204
]
}
},
"statusConfig": {
"active": "ACTIVE",
"inactive": "INACTIVE"
},
"listField": "data",
"keyField": "entitlementID",
"colsToPropsMap": {
"entitlementID": "attributes.role~#~char",
"description": "attributes.role~#~char",
"entitlement_value": "attributes.role~#~char"
}
}
}
}
}
},
"acctEntParams": {
"showResponse": true,
"entTypes": {
"Roles": {
"call": {
"call1": {
"connection": "acctAuth",
"callOrder": 0,
"stageNumber": 0,
"processingType": "httpEntToAcct",
"http": {
"httpHeaders": {
"Authorization": "Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx"
},
"url": "
https://workbench.expel.io/api/v2/user_account_roles/${id}/user_account",
"httpContentType": "application/json",
"httpMethod": "GET",
"successResponses": {
"statusCode": [
200,
204
]
}
},
"statusConfig": {
"active": "ACTIVE",
"inactive": "INACTIVE"
},
"listField": "data",
"entKeyField": "entitlementID",
"acctIdPath": "id",
"acctKeyField": "accountID",
"colsToPropsMap": {
"entitlementID": "id~#~char",
"description": "attributes.role~#~char",
"entitlement_value": "attributes.role~#~char"
},
"pagination": {
"offset": {
"offsetParam": "page[offset]",
"batchParam": "page[limit]",
"batchSize": 28,
"currentOffset": 0,
"totalCountPath": "28"
}
}
}
}
}
}
}
}
Can you also help with the json to revoke access,create account and disable account json