使用Graph API以编程方式删除Azure AD B2C用户 [英] Deleting Azure AD B2C User Programatically using Graph API

查看:83
本文介绍了使用Graph API以编程方式删除Azure AD B2C用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于GDPR的目的I需要允许我的网站用户删除其站点帐户及其在站点Azure B2C Active Directory租户中的基础条目.我计划通过在图形API上调用delete方法来完成此操作.我知道为了做 我需要将我的应用程序(网站?)添加到公司管理员"角色.目前还不清楚我该怎么做.我已经安装了AAD PowerShell工具,并尝试运行一个cmdlet,我发现该cmdlet会将我的APP添加到公司管理员"管理中心中. 角色.在我运行该cmdlet以添加成员时在PowerShell中提供了凭据之后,其错误和带有类似公司管理员"字样的消息不存在.任何人都可以帮忙.有没有明确的指示 关于如何授予我的Web应用程序足够的特权以调用Graph API上的delete用户方法.

For GDPR purposes I  need to allow my website users to delete their site account and their underlying entry in the site Azure B2C Active Directory tenant. I plan to do this calling the delete method on the graph API. I am aware that in order to do that I need to add my app (Website?) to the "Company administrators" role.  It is not really clear how I do that. I have installed the AAD PowerShell tool and tried to run a cmdlet that I found for adding my APP to the "Company administrators" role. After I provide my credentials in the PowerShell when i run that cmdlet to addrolemember it errors with a message along the the lines of Company Administrator does not exist.  Can anyone help with this please. Are there any clear instructions out there as to how to grant my web app sufficient previlages to call the delete user method on the Graph API.

推荐答案

帮助您以编程方式删除azure ad b2c中的用户

See this it might helps you to delete the users in azure ad b2c programatically

https://docs.microsoft.com/zh-cn/azure/active-directory-b2c/active-directory-b2c-devquickstarts-graph-dotnet

https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-devquickstarts-graph-dotnet

https://github.com/Huachao/azure-content/blob/master/articles/active-directory-b2c/active-directory-b2c-devquickstarts-graph-dotnet.md

https://github.com/Huachao/azure-content/blob/master/articles/active-directory-b2c/active-directory-b2c-devquickstarts-graph-dotnet.md

干杯!

Zeronix


这篇关于使用Graph API以编程方式删除Azure AD B2C用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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