Click HERE to see how Saviynt Intelligence is transforming the industry. |
05/13/2024 04:42 PM
Hi All,
We have a requirement to import the accounts for an application(GitHub). I want to import the GitHub accounts + 'Teams' as accounts in the GitHub endpoint in Saviynt.
I have framed below query for this:
05/13/2024 08:10 PM
Did you removed "disableDeletedAccounts":true and tried ?
Please share logs
05/15/2024 01:05 AM
@rushikeshvartakYes, when I remove "disableDeletedAccounts":true, it doesn't suspend the Teams that were previously imported.
But I need to keep the "disableDeletedAccounts":true, parameter as otherwise the accounts that actually got deleted in target system will not get suspended in Saviynt GitHub endpoint.
Is there any alternate solution to this?
Thanks,
Atul Singh
05/15/2024 01:27 AM
@AS5278 please find below working import ,it will help full
{
"accountParams": {
"connection": "acctAuth",
"createUsers": false,
"adminName": "admin",
"processingType": "SequentialAndIterative",
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "xxxx/members?per_page=100&page=1",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/x-www-form-urlencoded",
"httpMethod": "GET"
},
"listField": "",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "id~#~char",
"name": "login~#~char",
"displayName": "login~#~char"
},
"makeProcessingStatus": true,
"disableDeletedAccounts": true,
"pagination": {
"nextUrl": {
"nextUrlPath": "${headers?.Link==null?'':headers?.Link?.contains('next')?headers?.Link?.split(',')?.size()==2?headers?.Link?.split(',')[0]?.replace('<', '')?.replace('>; rel=\"next\"','')?.trim():headers?.Link?.split(',')[1].replace('<', '').replace('>; rel=\"next\"','').trim():''}"
}
}
},
"call2": {
"callOrder": 1,
"stageNumber": 1,
"http": {
"url": "https://api.github.com/users/${accountName}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/x-www-form-urlencoded",
"httpMethod": "GET"
},
"listField": "",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "id~#~char",
"name": "login~#~char",
"displayName": "login~#~char",
"customproperty1": "avatar_url~#~char",
"customproperty2": "gravatar_id~#~char",
"customproperty3": "url~#~char",
"customproperty10": "suspended_at~#~char"
},
"multiTrigger": {
"multiTriggerType": "MultiTriggerByAccountBatching",
"triggersCount": "20",
"params": {
"accountsoraccess": "accounts"
}
}
}
}
},
05/15/2024 07:55 PM
In this case use status threshold config block and remove condition from import json