@Ritu_Raj , I just tried on my tenant and it worked. Here are the steps I took. The only thing to note is that I exported and imported to the same tenant since I don’t have a sandbox set up. If you follow these steps for your two tenants and still have an issue, try exporting and importing to the same tenant and see if it works. We might have a bug here, but I just want to make sure I have as much info as possible to send a proper bug report to engineering.
- Export the identity profiles from tenant 1
POST https://{tenant1}.api.identitynow.com/beta/sp-config/export
Body
{
"description": "Export Profiles",
"excludeTypes": [
],
"includeTypes": [
"IDENTITY_PROFILE"
]
}
Response
{
"jobId": "0e3ccd2f-700b-4416-b8f5-d3f4db059cce",
"status": "NOT_STARTED",
"type": "EXPORT",
"message": null,
"description": "Export Profiles",
"expiration": "2022-04-28T01:25:13.6Z",
"created": "2022-04-21T01:25:13.6Z",
"modified": "2022-04-21T01:25:13.6Z",
"completed": null
}
- Get the export results and save them as a JSON file on your computer.
GET https://{tenant1}.api.identitynow.com/beta/sp-config/export/0e3ccd2f-700b-4416-b8f5-d3f4db059cce/download
Response (abbreviated)
{
"version": 1,
"timestamp": "2022-04-21T01:25:15.896063Z",
"tenant": "devrel",
"description": "Export Profiles",
"options": {
"excludeTypes": [],
"includeTypes": [
"IDENTITY_PROFILE"
],
"objectOptions": null
},
"objects": [
{
"version": 1,
"self": {
"name": "Test",
"id": "2c91808478189d26017822a5b9b80c9e",
"type": "IDENTITY_PROFILE"
...
...
...
- Import the downloaded file to the new tenant. Make sure to use the appropriate API access token for this new tenant.
cURL command
curl --location --request POST 'https://{tenant2}.api.identitynow.com/beta/sp-config/import' \
--header 'Authorization: Bearer {access_token}' \
--form 'data=@"/path/to/profile_export.json"'
- Get the status of the import
GET https://{tenant2}.api.identitynow.com/beta/sp-config/import/5b30f2a1-bbb5-4ebd-834d-618f290bddde
Response
{
"jobId": "5b30f2a1-bbb5-4ebd-834d-618f290bddde",
"status": "COMPLETE",
"type": "IMPORT",
"message": "Download import results for details.",
"description": null,
"expiration": "2022-04-28T01:26:45Z",
"created": "2022-04-21T01:26:45.68Z",
"modified": "2022-04-21T01:26:53.599Z",
"completed": "2022-04-21T01:26:53.594Z"
}