-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output the list of Organization users that have no activity since activity_days #6
Comments
There was a bug that was related to the emails that I think I have now resolved and this was linked to a large quantity of missing user data in some cases. I am still working through this with a user that can replicate the issue, as I do not have direct access to an organization I can easily test upon that does not create a similar problem. The user view on the organization is focused on the actual members, not outside collaborators, so maybe that possibly correlates with your potential mismatch on the user count? The report of the user should (if/when it works correctly) should report all members from the organization perspective matched to counts of activity and the flag indicating if they are considered active over that time frame, i.e. a user record with zero counts and a On GitHub.com, email addresses belong to the user account, so unless the user has publicly shared their email addresses on the user account, then they are always empty in the API results. The only exception in this is Enterprise Managed Users (EMUs) on GitHub.com, which was GA'ed a couple of months back and gives enterprise's full control over the user accounts and attributes like email that would come from your Identity Provider. There is a possible way to connect the user handles that we can obtain back to SSO identities, and therefore provide you with the ability to link to the email addresses in your IdP system using a GraphQL query, but that would be beyond the scope of this action to do. There is a |
Thanks for the detailed answer! We use github.com so the explanation for the missing emails makes sense. I still have a mismatch between the number of users excluding the outside collaborators. Let me see if I can see more debug information with your branch. |
I was wondering if it would be easy to extend the features of your utility to output the list of users that have no activity since
activity_days
. Effectively the opposite of the currently generated report.On a side note I've also noticed 2 things:
The current report is showing me only 128 users which is lower than the amount of users I have in the Org. I suppose the users that aren't showing don't have any activity in the last
activity_days
but one of them is showing<userName> ,"",false,0,0,0,0
so I am a little bit confused.The emails aren't showing in the report for me despite the PAT having the
user:email
scope (I also tried to add theuser:read
scope without success). Could that be because we are backed by SSO?The text was updated successfully, but these errors were encountered: