We would like to user Graph API to create users in Office 365. We have on-premise AD. And our Office 365 (Azure) syncs with on-premise AD. We want our users to visit our signup web application which creates account in on-premise AD. We would like to create their Office 365 account as well in the back-end and its great if they can log in as soon as the account is created.
I've tried following, but we are seeing two issues so far: User is not able to log in through our SSO login page and directory sync creates another account for the user in Office 365 (Azure). Can some one please help me figuring out if we doing something wrong or we missed something. Really appreciate any help and guidance.
1. A function which extracts objectGUID from AD user object.
Thank you so much for looking into my question and your suggestion. I reviewed the links you provided and it is really interesting and much easier way of doing whay we did. Unfortunately, our infrastructure and directory sync has already been set up and our team members are not ready to make any changes at this moment. I think I have to work with this infrasturcture for now and need to figure out how to create users with the user of Graph API so that they sync with our on-premise directory with no duplicates.
Thank you agian for providing me an alternative way of doing the same task.