Skip to content

User object does not expose GlobalUserID #562

@alvaromarithompson

Description

@alvaromarithompson

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

  • Version 9.0.0

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 (

public Guid? UserID { get; set; }
)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions