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

Mapping GitHub Accounts to Users in Saviynt

AS5278
Regular Contributor II
Regular Contributor II

Hi,

We are facing issues while importing the accounts from GitHub. If the GitHub account name is same as the user username in Saviynts, such accounts are getting mapped to users. 

But, if the GitHub account name is something else..let's say my username in organization is 'KG5396' but my GitHub account name is like 'demonslayer99'. So, in such cases, how to map them to user identities in Saviynt?.

Someone, suggested using 'email' as the correlation field. But, the email is coming as null in the GitHub User's API response.

See below:

User API response:

{
"login": "demonslayer99",
"id": <id>,
"node_id": "<node-id",
"avatar_url": "",
"gravatar_id": "",
"url": "",
"html_url": "",
"followers_url": "",
"following_url": "",
"gists_url": "",
"starred_url": "",
"subscriptions_url": "",
"organizations_url": "",
"repos_url": "",
"events_url": "",
"received_events_url": "",
"type": "User",
"site_admin": false,
"name": null,
"company": null,
"blog": "",
"location": null,
"email": null,
"hireable": null,
"bio": null,
"twitter_username": null,
"public_repos": 0,
"public_gists": 0,
"followers": 0,
"following": 0,
"created_at": "2023-07-31T13:12:49Z",
"updated_at": "2023-09-01T08:03:50Z"
}
And according to GitHub REST API docs: - There should be a public email defined for the GitHub account otherwise email will come as null in the GitHub Users API.
AS5278_0-1693739084269.png

What do we do in this case?. How do we map the GitHub accounts to users in Saviynt?. Please advice.

Thanks,

Atul Singh

xurde
1 REPLY 1

adriencosson
Valued Contributor
Valued Contributor

Hi @AS5278 ,

For uncorrelated accounts to identities, you leverage the below documentation to Map Orphan accounts using Analytics :

https://docs.saviyntcloud.com/bundle/EIC-Admin-v23x/page/Content/Chapter02-Identity-Repository/Manag... 

Or if you want to do it in bulk, you can create a CSV file that contains  :

  • USERNAME (e.g "KG5396")
  • ACCOUNTNAME (e.g  "demonslayer99")
  • ENDPOINTNAME (e.g "Github")

... and go to Admin > Identity Repository > Accounts and chose the "Upload Account" :

adriencosson_0-1693823067818.png

 

Reference documentation : https://docs.saviyntcloud.com/bundle/EIC-Admin-v23x/page/Content/Chapter04-Application-Management-an... 

Hope this helps !

Regards,
Adrien COSSON