XeroAPI / Xero-NetStandard

A wrapper of the Xero API in the .NetStandard 2.0 framework. Supports Accounting, Payroll AU/US, and Files
MIT License
126 stars 124 forks source link

User object does not expose GlobalUserID #562

Open alvaromarithompson opened 1 month ago

alvaromarithompson commented 1 month ago

SDK you're using (please complete the following information):

Describe the bug We've been going crazy trying to match the xero_userid returned by the OAuth process against an id found in the /Users endpoint since UserID is only the tenant-specific ID.

It turns out that there is a GlobalUserID property which matches xero_userid, but this is neither documented at https://developer.xero.com/documentation/api/accounting/users nor is it available in the Xero.NetStandard library (https://github.com/XeroAPI/Xero-NetStandard/blob/165ed1671e690b9f76c36d749795468d14c08890/Xero.NetStandard.OAuth2/Model/Accounting/User.cs#L96)

To Reproduce Steps to reproduce the behavior:

  1. Call the AccountingClient.GetUsersAsync() method
  2. GlobalUserID is nowhere to be seen.

Expected behavior The GlobalUserID property should be in the User object alongside UserID

Screenshots image

Additional context Both library and documentation are out-of-date

github-actions[bot] commented 1 month ago

PETOSS-603

github-actions[bot] commented 1 month ago

Thanks for raising an issue, a ticket has been created to track your request