We should extend the aad sp get command with support for retrieving service principals using their objectId. This becomes useful for example when working with managed identity and assigning permissions to the principal.
The request to retrieve a service principal using its objectId is very similar to the existing request: https://graph.windows.net/myorganization/servicePrincipals?api-version=1.6&$filter=objectId%20eq%20%27dfcaa754-6c28-4101-a257-c9d6998d3457%27
We should extend the
aad sp getcommand with support for retrieving service principals using their objectId. This becomes useful for example when working with managed identity and assigning permissions to the principal.The request to retrieve a service principal using its objectId is very similar to the existing request:
https://graph.windows.net/myorganization/servicePrincipals?api-version=1.6&$filter=objectId%20eq%20%27dfcaa754-6c28-4101-a257-c9d6998d3457%27