Technical Query : Reason behind some Service principal features

Nandan Hegde 27,391 Reputation points MVP

Recently observed that one can create multiple Service principals with the same name in Azure AD .

Note: They have different clientIds but same name. This in turn creates issues while creating users within Azure SQL. So any reason why same name App Ids are allowed in AAD?

Also , a same client ID has different objectid when looked up via Enterprise applications and when seen via AppIs it because Enterprise applications is a union of all managed identities, Service principals etc , the objectid creation for Enterprise applications is different as compared to App registrations. registrations.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
17,605 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 85,646 Reputation points MVP

    "Name" is not a identifier you should be using, not for SPs, not for users, not for any object within Azure AD. As you've mentioned above it's not uniquely-valued, so it should only be used for display purposes and not looking up the actual object.
    As for your other question, read this article to understand the difference/relationship between app and SP objects:

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful