A cloud-based identity and access management service for securing user authentication and resource access
For what it's worth, we had the same issue with granting ourselves access to one of our customer's Azure subscriptions using the foreign security principal. Long and short of the fix is:
- Must have a Partner Relationship created. Create it by signing into Partner Center > New Customer > copy the link from the email tenant > sign into customer tenant as admin > paste the link and accept the relationship.
- Connect to customer tenant with PowerShell and grant the access:
- Connect-AzAccount -TenantId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- New-AzRoleAssignment -ObjectID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -RoleDefinitionName "Owner" -Scope "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ObjectType "ForeignGroup"
- In customer tenant, go to Entra ID > External Identities > Cross-tenant access settings > Org settings > choose inbound access of your partner organization > Trust Settings > choose 'customize' and select 'Trust Multifactor Auth' and 'Trust Compliant Devices'
This should allow the permission to be added and if you select the subscription in question in the customers tenant > Access Control > Role Assignments > you'll see the 'Foreign Principal for 'PartnerName'' listed.