[英]Create user in Active Directory using node.js
I need to create a user in Active Directory
with node.js
.我需要使用
node.js
在Active Directory
创建一个用户。 I found this library , but this seems to only get information out of AD and is not able to create Objects, eg a user.我找到了这个库,但这似乎只能从 AD 中获取信息,并且无法创建对象,例如用户。
I have never worked with AD before and have less to no knowledge about it.我以前从未与 AD 合作过,对此知之甚少。 May someone help me how I can realize this with
node.js
(TypeScript)?有人可以帮助我如何使用
node.js
(TypeScript) 实现这一点?
You can do this with the Graph REST API https://docs.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0&tabs=http您可以使用 Graph REST API https://docs.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0&tabs=http
This needs an auth token to use the API above which you can get using this one https://github.com/AzureAD/azure-activedirectory-library-for-nodejs/blob/master/sample/client-credentials-sample.js这需要一个身份验证令牌才能使用上面的 API,您可以使用此 API https://github.com/AzureAD/azure-activedirectory-library-for-nodejs/blob/master/sample/client-credentials-sample.js
Hey I've been thinking about this too. 嘿,我也一直在想这个。 I haven't started anything yet but I have found this similar library that does have an add() function for users, groups and ous.
我还没有开始任何事情,但是我发现了这个类似的库 ,它确实具有用于用户,组和ous的add()函数。 I haven't got to test it out yet myself but looks like it's precisely what we're both looking for.
我还没有亲自测试它,但是看起来这正是我们俩都在寻找的东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.