Skip to content

[WIP] Fix retrieval of properties for current user#2528

Draft
Copilot wants to merge 1 commit intodocsfrom
copilot/fix-current-user-properties
Draft

[WIP] Fix retrieval of properties for current user#2528
Copilot wants to merge 1 commit intodocsfrom
copilot/fix-current-user-properties

Conversation

Copy link
Contributor

Copilot AI commented Mar 20, 2026

Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.

Original prompt

This section details on the original issue you should resolve

<issue_title>How to get properties of the "current user"?</issue_title>
<issue_description>The documentation says, "pass null into this method, which gets the current user's ID." But there's no documented way to use the returned system ID to obtain the properties of the "current user." I cannot get a User object from this system ID, therefore I cannot get any other properties. In particular, I seek the login ID and display name for the "current user" -- the owner of this process -- for a collaboration feature in our app.

I can get a list of users from System::User::FindAllAsync(...), but how do I determine which of those users is the "current user"? I tried iterating through that vector, calling GetSystemIdForUser(user).id() for each, and comparing with the value returned by GetSystemIdForUser(nullptr).id(), but none of them compared equal.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Comments on the Issue (you are @copilot in this section)


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge PR is being processed and awaiting review/approval. review-team-triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to get properties of the "current user"?

2 participants