Using the azure go sdk, is it possible to use the Application (client) ID
, Directory (tenant) ID
, and a valid Client secret
to obtain the Object ID
of the Azure Active Directory application? How?
Here is a screenshot of the Azure portal to help clarify those three fields.
I've tried to use the following function from graphrbac, but the *result.Value
does not match with the Object ID
from the screenshot above.
func (client ApplicationsClient) GetServicePrincipalsIDByAppID(ctx context.Context, applicationID string) (result ServicePrincipalObjectResult, err error)