Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Office365 Chinese tenant onboarding using REST connector

MahimaMahajan
New Contributor
New Contributor

There is a requirement to import office365 China Tenant. We started off by using the Office365 connection type but Saviynt recommended that this isn't feasible for OOTB so we need to use REST connection type. We are facing issues with import JSON while configuring the REST connection. Below is the ImportAccountEntJSON that we are using. We are unable to understand which URL we need to use. Please assist us with the same.

{
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"statusColumn": "customproperty11",
"activeStatus": [
"false"
],
"deleteLinks": true,
"accountThresholdValue": 10,
"correlateInactiveAccounts": false,
"inactivateAccountsNotInFile": true,
"deleteAccEntForActiveAccounts": true
},
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://microsoftgraph.chinacloudapi.cn/v1.0/",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "users",
"keyField": "accountID",
"statusConfig": {
"active": "true",
"inactive": "false"
},
"colsToPropsMap": {
"accountID": "id~#~char",
"name": "email~#~char",
"displayName": "name~#~char",
"customproperty2": "email~#~char",
"customproperty3": "created_at~#~char",
"customproperty4": "updated_at~#~char",
"customproperty5": "role~#~char",
"status": "active~#~char"
},
"pagination": {
"nextUrl": {
"nextUrlPath": "${response?.completeResponseMap?.next_page==null?null:response.completeResponseMap.next_page}"
}
}
}
}
},
"entitlementParams": {
"entTypes": {
"O365-ServicePlan": {},
"O365-SKULicense": {},
"O365-ADGroup": {}
}
},
"acctEntParams": {}
}

 

7 REPLIES 7

rushikeshvartak
All-Star
All-Star

{
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"statusColumn": "customproperty11",
"activeStatus": ["false"],
"deleteLinks": true,
"accountThresholdValue": 10,
"correlateInactiveAccounts": false,
"inactivateAccountsNotInFile": true,
"deleteAccEntForActiveAccounts": true
},
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://microsoftgraph.chinacloudapi.cn/v1.0/users",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "users",
"keyField": "accountID",
"statusConfig": {
"active": "true",
"inactive": "false"
},
"colsToPropsMap": {
"accountID": "id~#~char",
"name": "email~#~char",
"displayName": "name~#~char",
"customproperty2": "email~#~char",
"customproperty3": "created_at~#~char",
"customproperty4": "updated_at~#~char",
"customproperty5": "role~#~char",
"status": "active~#~char"
},
"pagination": {
"nextUrl": {
"nextUrlPath": "${response?.completeResponseMap?.next_page==null?null:response.completeResponseMap.next_page}"
}
}
}
}
},
"entitlementParams": {
"entTypes": {
"O365-ServicePlan": {},
"O365-SKULicense": {},
"O365-ADGroup": {}
}
},
"acctEntParams": {}
}


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

MahimaMahajan
New Contributor
New Contributor

Thanks for providing the JSON. I was able to run the access import job successfully with this but no entitlements/accounts were imported. There is no data that came through. Please assist.

Does it working  from postman ?


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

MahimaMahajan
New Contributor
New Contributor

Yes, this works in postman, however, this url brings Azure AD China artefacts (users and entitlements). Can you confirm if it would be same for Office 365 China as well?

https://graph.microsoft.com.cn/v1.0/users


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

MahimaMahajan
New Contributor
New Contributor

Hi, we are getting an error with this url mentioned above. please see screenshot below and assist

MahimaMahajan_0-1712140557250.png

 

Is it working from postman


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.