Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >

KB-8025:How to add a local user or group using Centrify DirectControl SDK

Authentication Service ,  

30 December,16 at 01:06 AM

Applies to:
DirectControl SDK version 5.3.1 and higher on all platforms

How do you add a local user and a local group to the zone using C#API, VBS, and PowerShell?

To add local user to a zone, use API AddLocalUserPartialProfile 

To add local group to a zone, use API AddLocalGroupPartialProfile 

We have also included some sample code examples (C#, VBS and PowerShell) in SDK for adding, removing and enumerating the local user/group profiles: 

* add_partial_local_user 

* add_partial_local_group 

* enumerate_local_user_profiles 

* enumerate_local_group_profiles 

* remove_local_user 

* remove_local_group 

Make sure the latest version of the SDK 5.3.1 is used.

Please follow the reference guide for Windows API Programmer’s Guide for more details.

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.