Best answer

Adding use in Active Directory/Office365

  • 12 November 2020
  • 1 reply
  • 213 views

Hi Everyone - 

Looking to see if anyone has any insight on what I am trying to accomplish. 

 

Basically:

When a new entry is received in a specific form in CognitoForms then I want to create a user in Microsoft Office 365 Admin Active Directory.

 

Any idea if this is possible?

icon

Best answer by Bryan_from_workload 12 November 2020, 03:06

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 3
Badge +1

Hi there,

 

Of course you can! If it has an API, it’s possible. 

 

Here’s Microsoft’s documentation on creating a new user in AD.

 

https://docs.microsoft.com/en-us/graph/api/resources/azure-ad-overview?view=graph-rest-1.0

 

After reading through it, 99% of the work is actually just setting up your application token, authentication, etc. in the cloud prior to being able to even use the admin API to create users. 

Once you get your “application” up and running/authenticated, you just have to use the custom webhook function in Zapier to call the “invite” API using the data from your Cognito Form.

https://docs.microsoft.com/en-us/graph/api/resources/invitation?view=graph-rest-1.0

 

Best of luck!

 

Bryan from workload