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

Github API documentation < and >

RV
Regular Contributor
Regular Contributor

I am using Github API Integration documentation to setup a connection Github Cloud and the JSON used for "ImportAccountEntJSON" is having < and >   

Do we need to remove them and provide the actual values?  Are those being used as a substitution variables?

https://docs.saviyntcloud.com/bundle/GitHubRest-v2022x/page/Content/Creating-an-Integration.htm#top

 

https://<DOMAIN>/orgs/<Org_Name>/members?per_page=100&page=1

 

14 REPLIES 14

Rishi
Saviynt Employee
Saviynt Employee

Yes, please replace them actual domain name and org name, refer below example -

https://xyz.com/orgs/abc/members?per_page=100&page=1

 

rushikeshvartak
All-Star
All-Star

https://github-s.com/api/v3/users this worked for me


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

RV
Regular Contributor
Regular Contributor

What if there are multiple organizations in github?  Hardcoding org will not import all organizations right?

 

https://xyz.com/orgs/abc/members?per_page=100&page=1

use org API and pass parameter using multicall api


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

RV
Regular Contributor
Regular Contributor

1. Can you please provide sample JSON to import multiple orgs through org API ?

2. Also, in the connector, there is a field to mention the list of organizations in ORGANIZATION_FIELD.   Does it has to be static list always?   Can Saviynt refer to the list mentioned in that field and substitute values in the Org_Name in the API URL?

I have used rest api instead of github rest connector


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

RV
Regular Contributor
Regular Contributor

Can you please provide import JSON from your REST connector ?

RV
Regular Contributor
Regular Contributor

Looks like the documentation has been updated and I do not see the below link any more.  Does that mean, Saviynt does not support Github Cloud Integration through GithubRest connector? 

 

https://<DOMAIN>/orgs/<Org_Name>/members?per_page=100&page=1

 

prashantChauhan
Saviynt Employee
Saviynt Employee

Hi @RV 

We need to follow the steps mentioned in the section- Parameters for Creating Connection for GitHub Enterprise Version to integrate with the GitHub Enterprise Cloud(Multiple Organizations).

The product team is working on updating the Documentation to make it clearer with proper JSONs and it should be done in the next few days.

I am attaching the correct ConnectionJSON and the ImportAccountEntJSON that you need to use. Please replace the necessary values like Domain.

 

RV
Regular Contributor
Regular Contributor

JSONs provided are for Enterprise version and not available for Github Cloud Enterprise Version.      Can you please check and provide the correct endpoint APIs for multiple organization imports ?

/api/v3/users?per_page=100

RV
Regular Contributor
Regular Contributor

@rushikeshvartak  

I found another API that is not listed in the Saviynt documentation that will give me the list of orgs, however it does not have any accountID/name to associate to the Account in the colsToPropsMap.   Can we use this call to get the list of orgs and then use the list to iterate the subsequent calls?   Can you provide me any sample using the /orgs API to iterate the list of organization name and then use it in  https://<DOMAIN>/orgs/<Org_Name>/members?per_page=100&page=1,

ORGS API : https://api.github.com/user/orgs

You can use standard REST connector and achieve this requirement 


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

RV
Regular Contributor
Regular Contributor

@rushikeshvartak  Can you please provide me a sample using the /XYZ endpoint API to iterate the list of organization name and then use it in https://<DOMAIN>/orgs/<Org_Name>/members?per_page=100&page=1 ?    I did not find any sample in the REST connector documentation without any references to KeyField on the first call.

prashantChauhan
Saviynt Employee
Saviynt Employee

Hi @RV 

Can you please create a Freshdesk support ticket for this issue so that our engineering team can investigate this and provide a solution either by fixing it in the GitHubREST OOTB connector or via the REST Connector?

Thanks.