chkaufmann 17 Posted February 10, 2021 When a user starts my application, I would like to know all groups assigned to that user. On the command line I can do this: dsquery user -samid "christian.kaufmann" | dsget user -memberof -expand Now I have a delphi function I could use to run this call and then parse the input. But before I start to implement that I would like to know: - Is a regular user allowed to call this in order to read that information? - Is there another way to get this info from the system? - Or are only administrators allowed to read this information? The background is, I would like to show the user a list of available projects based on the groups he is a member of. Christian Share this post Link to post
FPiette 383 Posted February 10, 2021 (edited) Use NetUserGetLocalGroups. And look the answer of this question to know how to call it. Edited February 10, 2021 by FPiette Share this post Link to post