Hi @kumar • Thank you for reaching out.
I understood that you want to automate the creation of Non-gallery app and its user provisioning configuration using PowerShell or REST API.
I would suggest you use REST API for this purpose, as it covers all aspects of application configuration. Although PowerShell also uses RESTCalls in the background there may not be all cmdlets available to cover all aspects from the automation perspective.
You can use Graph API to automate the below steps, where you get the ID of the existing application that you will be using as a template for your Non-gallery app and create the Non-gallery application using the template. Please refer to Configure SAML-based single sign-on for your application using the Microsoft Graph API for the below steps:
- Create the application
- Configure single sign-on
- Configure claims mapping
- Configure a signing certificate
- Assign users
- Get Azure AD SAML metadata
Once the above steps are done, you can use the Azure AD synchronization API to automate User Provisioning. You can:
- Create, start, and stop synchronization jobs
- Make changes to the synchronization schema for jobs
- Verify the current synchronization status
-----------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.