Azure microsoft graph api 受邀用户无法邀请用户
Azure microsoft graph api invited user not able to invite user
我正在开发一个应用程序,我有一些用户在 azure 广告上,而一些用户需要是外部用户(例如:gmail)。我正在使用 Microsoft Graph api 从外部邀请用户。所有这些用户在 AD 中都具有用户管理员角色。
我能够使用内部用户凭据成功邀请外部用户。但是当我尝试使用受邀用户的详细信息再次邀请外部用户时,我得到了
错误 :
{
"error":{
"code": "BadRequest",
"message": "Current authenticated context is not valid for this request. This occurs when a request is made to an endpoint that requires user sign-in. For example, /me requires a signed-in user. Acquire a token on behalf of a user to make requests to these endpoints. Use the OAuth 2.0 authorization code flow for mobile and native apps and the OAuth 2.0 implicit flow for single-page web apps.",
"innerError":{
"request-id": "2d6d6c29-4f13-4eeb-bae4-2d6cc0d2de00",
"date":“2019-05-27T13:22:20”
}
}
}
我正在使用邮递员检查这些 apis.I 已附上获取 jwt 的请求详细信息 token.Can 请您在这里帮忙。如果您需要更多信息,请告诉我。
如果我添加 Google 作为 B2B 来宾用户的身份提供者,我可以重现您的问题。
我也试过 Graph explorer。我们甚至无法使用此工具,因为 google 帐户不是 Microsoft 帐户。
也许使用 邀请的 google 帐户(不是 Microsoft 帐户)邀请其他来宾用户的唯一方法是使用 Azure 门户。
Google 来宾用户必须使用包含租户上下文的 link 登录(例如,https://myapps.microsoft.com/?tenantid=<tenant id>
或 https://portal.azure.com/<tenant id>
我正在开发一个应用程序,我有一些用户在 azure 广告上,而一些用户需要是外部用户(例如:gmail)。我正在使用 Microsoft Graph api 从外部邀请用户。所有这些用户在 AD 中都具有用户管理员角色。 我能够使用内部用户凭据成功邀请外部用户。但是当我尝试使用受邀用户的详细信息再次邀请外部用户时,我得到了 错误 : { "error":{ "code": "BadRequest", "message": "Current authenticated context is not valid for this request. This occurs when a request is made to an endpoint that requires user sign-in. For example, /me requires a signed-in user. Acquire a token on behalf of a user to make requests to these endpoints. Use the OAuth 2.0 authorization code flow for mobile and native apps and the OAuth 2.0 implicit flow for single-page web apps.", "innerError":{ "request-id": "2d6d6c29-4f13-4eeb-bae4-2d6cc0d2de00", "date":“2019-05-27T13:22:20” } } }
我正在使用邮递员检查这些 apis.I 已附上获取 jwt 的请求详细信息 token.Can 请您在这里帮忙。如果您需要更多信息,请告诉我。
如果我添加 Google 作为 B2B 来宾用户的身份提供者,我可以重现您的问题。
我也试过 Graph explorer。我们甚至无法使用此工具,因为 google 帐户不是 Microsoft 帐户。
也许使用 邀请的 google 帐户(不是 Microsoft 帐户)邀请其他来宾用户的唯一方法是使用 Azure 门户。
Google 来宾用户必须使用包含租户上下文的 link 登录(例如,https://myapps.microsoft.com/?tenantid=<tenant id>
或 https://portal.azure.com/<tenant id>