What is the different between service principal in App Registration and enterprise application ?

%3CLINGO-SUB%20id%3D%22lingo-sub-1426952%22%20slang%3D%22en-US%22%3ERe%3A%20What%20is%20the%20different%20between%20service%20principal%20in%20App%20Registration%20and%20enterprise%20application%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1426952%22%20slang%3D%22en-US%22%3E%3CP%3EOne%20is%20the%20actual%20application%20object%2C%20where%20you%20configure%20the%20properties%20of%20your%20app%20(authentication%2C%20permissions%2C%20replyURIs%20and%20so%20on).%20The%20other%20one%20is%20a%20representation%20of%20the%20application%20within%20a%20directory%2C%20this%20can%20be%20your%20own%20directory%20or%20another%20company%20directory%2C%20etc.%20It%20%22inherits%22%20the%20settings%20from%20the%20application%20object%20and%20is%20what's%20used%20to%20grant%20consent%2Fpermissions%20to%20resources.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1428484%22%20slang%3D%22en-US%22%3ERe%3A%20What%20is%20the%20different%20between%20service%20principal%20in%20App%20Registration%20and%20enterprise%20application%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1428484%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20explanation.%3C%2FP%3E%3CP%3ECan%20you%20elaborate%20a%20bit%20more%20one%20when%20to%20use%20application%20object%20id%20and%20when%20to%20use%20service%20principal%20object%20id%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20You%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1428733%22%20slang%3D%22en-US%22%3ERe%3A%20What%20is%20the%20different%20between%20service%20principal%20in%20App%20Registration%20and%20enterprise%20application%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1428733%22%20slang%3D%22en-US%22%3E%3CP%3ENot%20sure%20what%20you%20are%20trying%20to%20do%2C%20so%20don't%20know%20what%20to%20elaborate%20%3A)%3C%2Fimg%3E%20The%20documentation%20gives%20you%20more%20details%20if%20needed%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fdevelop%2Fapp-objects-and-service-principals%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fdevelop%2Fapp-objects-and-service-principals%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1430483%22%20slang%3D%22en-US%22%3ERe%3A%20What%20is%20the%20different%20between%20service%20principal%20in%20App%20Registration%20and%20enterprise%20application%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1430483%22%20slang%3D%22en-US%22%3EA%20very%20easy%20explanation%20(that%20isn't%20100%25%20correct)%20is%20that%20you%20create%20a%20app%20registration%20for%20apps%20that%20you%20develop%20yourself.%3CBR%20%2F%3EEnterprise%20Applications%20are%20added%20when%20you%20add%20third%20party%20appliations.%3CBR%20%2F%3E%3CBR%20%2F%3EAs%20Vasil%20said%2C%20if%20you%20would%20provide%20us%20with%20more%20insights%2C%20we%20could%20provide%20a%20better%20answer%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1426041%22%20slang%3D%22en-US%22%3EWhat%20is%20the%20different%20between%20service%20principal%20in%20App%20Registration%20and%20enterprise%20application%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1426041%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Team%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20to%20know%20more%20about%20the%20service%20principal%20in%20Azure%20AD.%3C%2FP%3E%3CP%3EWhen%20we%20create%20a%20service%20principal%20in%20Azure%20AD%2CIt%20creates%20two%20resources%20%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1)%20Service%20Principal%20in%20App%20Registration%3C%2FP%3E%3CP%3E2)%20Service%20Principal%20in%20Enterprise%20Application%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EApplication%20Id%20for%20both%20is%20same%20but%20object%20Ids%20are%20different%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20to%20retrieve%20these%20object%20Ids%20via%20powershell%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1426041%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAccess%20Management%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIdentity%20Management%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Contributor

Hi Team,

 

I would like to know more about the service principal in Azure AD.

When we create a service principal in Azure AD,It creates two resources :

 

1) Service Principal in App Registration

2) Service Principal in Enterprise Application

 

Application Id for both is same but object Ids are different ?

 

How to retrieve these object Ids via powershell?

4 Replies

One is the actual application object, where you configure the properties of your app (authentication, permissions, replyURIs and so on). The other one is a representation of the application within a directory, this can be your own directory or another company directory, etc. It "inherits" the settings from the application object and is what's used to grant consent/permissions to resources.

Hi @Vasil Michev ,

 

Thanks for the explanation.

Can you elaborate a bit more one when to use application object id and when to use service principal object id?

 

Thank You

Not sure what you are trying to do, so don't know what to elaborate :) The documentation gives you more details if needed: https://docs.microsoft.com/en-us/azure/active-directory/develop/app-objects-and-service-principals

A very easy explanation (that isn't 100% correct) is that you create a app registration for apps that you develop yourself.
Enterprise Applications are added when you add third party appliations.

As Vasil said, if you would provide us with more insights, we could provide a better answer