Hi @David Maryo ,
I understand that you are trying to grant "Read" permissions to a particular user to allow that user to access the Azure Artifact Feed. I understand that you are also hoping to figure out how to locate the user by User ID.
In order to grant Read permissions to Azure Artifacts for the user, you need to go to Artifacts > Permissions > Add users/groups > Add the user and select the Access role:
To figure out which user has that particular Object ID, you can use the Get-AzureADObjectByObjectId Powershell command.
Get-AzureADObjectByObjectId
-ObjectIds <System.Collections.Generic.List`1[System.String]>
[-Types <System.Collections.Generic.List`1[System.String]>]
[<CommonParameters>]
You can also use Microsoft Graph API:
POST https://graph.microsoft.com/v1.0/directoryObjects/getByIds
Content-type: application/json
{
"ids":[""]
}
If you want to call the Microsoft Graph with Azure CLI, you can use the command az rest
**az rest --method POST --url 'https://graph.microsoft.com/v1.0/directoryObjects/getByIds' --headers 'Content-Type=application/json' --body '{"ids":[""]}'**
Let me know if this helps and if you have further questions.
Thanks,
Marilee