i am trying to get all users in a machine using the following uwp api
Windows.System.User.FindAllAsync
This api is giving only the current logged in user in the machine.
Is there a way to get all users of a machine?
i am trying to get all users in a machine using the following uwp api
Windows.System.User.FindAllAsync
This api is giving only the current logged in user in the machine.
Is there a way to get all users of a machine?
Do you have any progress? If the question hasn't been resolved, please feel free to contact us.
Hi,
Welcome to Microsoft Q&A!
Currently, uwp provides FindAllAsync method returns the user that is currently logged-in and using the app for most devices, it doesn't return all the accounts on the machine. There is DirectoryEntry class under System.DirectoryServices namespace could get all users of a machine, but the System.DirectoryServices is not supported on uwp. So maybe you need to create a win32 app uses the System.DirectoryServices and package it into uwp app, then you could use FullTrustProcessLauncher Class to call this win32 app.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Hi,
If i use DirectoryEntry class using win32 app and integrate into UWP app, will there be any issue during microsoft
store submission?
-Raja
@RajaShanmugam-2814 This doesn’t affect your store submission. Note that you need to declare a runFullTrust capability, which is a restricted capability, so you must provide info during the app submission process in order to be approved to publish the app to the Microsoft Store. You provide this info on the Submission options page of your submission, explaining how your app uses each restricted capability that it declares.
6 people are following this question.