Grant service principal access to application in other tenant

前端 未结 3 1975
滥情空心
滥情空心 2021-01-14 00:29

I have an Azure AD service principal in one tenant (OneTenant) that I would like to give access to an application in another tenant (OtherTenant).<

3条回答
  •  执念已碎
    2021-01-14 00:44

    Taking the command as is from your question:

    New-AzureADServiceAppRoleAssignment `
      -ObjectId  `
      -Id  `
      -PrincipalId  `
      -ResourceId 
    

    Try changing the last parameter value i.e. ResourceId

    Currently you're passing

    Replace that with

提交回复
热议问题