如何在Azure AD B2C中使用Revoke-AzureADUserAllRefershToken? [英] How do you use Revoke-AzureADUserAllRefershToken with Azure AD B2C?

查看:99
本文介绍了如何在Azure AD B2C中使用Revoke-AzureADUserAllRefershToken?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到了这个答案并进行了更新( Azure AD B2C中的吊销终结点 ),但我不确定如何在Azure AD B2C中使用它.我打开了一个Azure Cloud Shell,然后回来该对象ID不存在.我正在从父Azure目录运行此文件,因为无法在Azure AD B2C目录中打开Azure Cloud Shell(它显示未找到有效的订阅").您是否必须在Azure AD B2C目录中运行此命令?如果是这样,我如何链接订阅以便可以执行此操作?

I saw this answer and update (Revocation endpoint in Azure AD B2C) but I'm not sure how to use this with Azure AD B2C. I've opened up an Azure Cloud Shell and it comes back that the object ID does not exist. I'm running this from my parent Azure directory because I could not open up an Azure Cloud Shell inside my Azure AD B2C directory (it said "No valid subscription found"). Do you have to run this command from within the Azure AD B2C directory? If so how do I link a subscription so that I can do this?

推荐答案

我不相信您可以使用Azure Cloud Shell,因为Azure AD B2C目录与Azure订阅无关,就像Azure AD目录与一个.

I don't believe you can use Azure Cloud Shell because an Azure AD B2C directory isn't related to an Azure subscription like an Azure AD directory is related to one.

您可以使用:

  1. The Revoke-AzureADUserAllRefreshToken cmdlet 的用于图形的Azure Active Directory PowerShell模块.
  1. The Revoke-AzureADUserAllRefreshToken cmdlet of the Azure Active Directory PowerShell for Graph module.
  2. The Invalidate all refresh tokens for a user operation of the Azure Active Directory Graph API.

这篇关于如何在Azure AD B2C中使用Revoke-AzureADUserAllRefershToken?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆