Add AD User, enable/disable user

Add AD User, enable/disable user

wesbird
Collaborator Collaborator
500 Views
4 Replies
Message 1 of 5

Add AD User, enable/disable user

wesbird
Collaborator
Collaborator

Hi, 

 

  I'm working some admin tool, I did not find function to add AD (domain) user, enable / disable user. Where I can find them? 

 

  Much appreciate and many thanks

 

 

Wes

 

  

Windows 10 64 bit, AutoCAD (ACA, Map) 2023
0 Likes
501 Views
4 Replies
Replies (4)
Message 2 of 5

wayne.brill
Collaborator
Collaborator

Hi Wes,

 

Did you try using the AddUser Method of the AdminService Class? This function is documented in the API help. (Search on AddUser)

 

Thanks,

Wayne



Wayne Brill
Developer Technical Services
Autodesk Developer Network

Message 3 of 5

wesbird
Collaborator
Collaborator

Hi Wayne:

 

  I do look at AddUser, but I miss AuthTyp part. Thank you, 

 

  then how to enable or disable a user? 

 

 

Many thanks

Wes

  

 

  

Windows 10 64 bit, AutoCAD (ACA, Map) 2023
0 Likes
Message 4 of 5

wayne.brill
Collaborator
Collaborator

Hi Wes,

 

The AdminService.UpdateUserInfo() has an isActive argument. Try using this to enable or disable  a user. You have to be logged in as an administrator to use UpdateUserInfo().

 

Thanks,

Wayne



Wayne Brill
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 5 of 5

ThomasRambach
Advisor
Advisor

Is there any examples to do this in powerShell?

0 Likes