Issue
Sync Failed with:
- Error- 404 Not Found
- Error-HTTP Error Response: 401 Unauthorized with error response
- HTTP Error Response: 403 Forbidden - Resource protected by organization SAML enforcement. You must grant your OAuth token access to this organization.
- HTTP Error Response: 422 Unprocessable Entity - Only owners can use this filter.
- HTTP Error Response: 403 Forbidden with error response - You must be an owner of this organization to list outside collaborators.
Cause
1. Sync Failed with Error- 404 Not Found
Root cause: This error occurs when the Organization ID provided in the Idira IGA configuration is incorrect.
2. Error-HTTP Error Response: 401 Unauthorized with error response
{"message":"Bad credentials","documentation_url":"https://docs.github.com/rest"}
Root cause: When you authenticate with invalid credentials, a 401
Unauthorized
message is returned.
3. HTTP Error Response: 403 Forbidden - Resource protected by organization SAML enforcement. You must grant your OAuth token access to this organization.
Root cause: This error occurs when you have enabled SAML in GitHub. The resources are protected by organization SAML enforcement, and you have not granted your OAuth token access to that organization.
4. HTTP Error Response: 422 Unprocessable Entity - Only owners can use this filter.
Root cause: This error occurs when the OAuth app is created from an organization’s non-owner account. There are some GitHub APIs such as the two-factor-auth filter in the members API which require owner access.
5. HTTP Error Response: 403 Forbidden with error response - You must be an owner of this organization to list outside collaborators.
Root cause: This error occurs when the OAuth app is created from an organization’s non-owner account. There are some GitHub APIs such as the outside collaborators API which require owner access.
Resolution
- Solution:
- To get the correct Organization ID, log in to your GitHub account, click your profile, and click Your organizations from the popup menu.
- Locate the organization you want to use for the GitHub sync and paste the organization name in the Organization ID field of Idira IGA.
- Solution:
- See Integrate GitHub for more information on how to obtain the correct credentials.
- Solution:
- Solution:
- Create a new OAuth app and authenticate it from the organization’s owner account. See Integrate GitHub for more information on how to create the OAuth app.
- Solution: