Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
238 views
in Technique[技术] by (71.8m points)

Create Azure AD application in customer Tenant

I have to create an application and service principal in the customer tenant using the partner tenant's app credentials as partner tenant is also an admin for all its customers.
This should be done through with no user intervention.
Is it possible to do this. Any help will be appreciated

question from:https://stackoverflow.com/questions/65856851/create-azure-ad-application-in-customer-tenant

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

When you use app credentials what you trigger is the client credentials flow. The token you get will be for the tenant where the app is registered ie partner tenant in this case. If you want to create app registrations and service principals in customer's tenant I believe you need to use the app credentials from the customer's tenant and use this MS graph API to create the application and service principal that you want to create all with no user intervention.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...