0

I need to know how I can trigger the creation of a new SharePoint Online site collection with an external identity provider in my case KeyCloak.

As soon as a new user has been created and a certain flag is set. Then is should trigger the generation of a new SharePoint Online site collection.

I don't really know where to start. Maybe I can use the endpoint of KeyCloak.

Best regards

Matthias

1 Answer 1

0

You can create new SharePoint Online sites programmatically using either the Microsoft Graph APIs or the SharePoint APIs. More information on how to utilise these APIs can be found here:

Working with SharePoint sites in Microsoft Graph

SharePoint .NET Server, CSOM, JSOM, and REST API index

Additionally, there is PnP.PowerShell, PnP Framework and PnP Core SDK, which are open source projects that are very useful for utilising SharePoint and Microsoft 365.

I imagine you will need to utilise some sort of event receiver in Keycloak and then call one of these Microsoft APIs or your own custom application e.g. Power Automate flow, Azure Function etc to then create the SharePoint site.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.