Org read role to fetch GitHub License, Copilot and Advance security license metrics for SAM Pro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
As part of the ServiceNow SaaS integration, we are trying to integrate SAM Pro with GitHub License, GitHub Co-Pilot and GitHub Advanced Security to fetch the license metrics.
As per the docs, i understood the API user (PAT) should have the org-owner role to fetch the required license metrics from GitHub. But we have restriction from GitHub team to share org-admin or org-owner role.
Now I'd like to know whether we can fetch all the required license with just org-read role?
License metrics details we are expecting to fetch from GitHub:
Subscription data (ID, Product Name, Total purchased Seats, Consumed Seats, Subscription status & dates)
User data (ID, Email, User Status, Seat Assignments Status, Organization Members, License Tier), etc.,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
Hi @ANVarma
yes, „read:org“ is the minimum required role to read all relevant subscriptions details for SAM Pro.
from the docs I can see the following documentation for GitHub (Enterprise/Server).
For Enterprise I can see the mentioned read:* roles.
To get all subscription details for GitHub Enterprise Cloud the role „read:org“ is required. „Write:org“ is needed for reclamation.
Best, Dennis
