Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.17k stars 4.53k forks source link

Not able to create an azure adb2c user into APIM user #41899

Open chandraaa opened 4 months ago

chandraaa commented 4 months ago

Library name and version

latest

Query/Question

I have a requirement to onboard azure adb2c user automatically into APIM users list. Perhaps, existing APIM api or sdk dont have any reference to same. I have a azure adb2c user, I want to onboard that user into APIM programmatically.

image

image

Environment

using .net coes to consume client

jsquire commented 4 months ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.

chandraaa commented 4 months ago

hi Team, I know maybe you are working on the issue and sdk update. Could you help me on the possibilities of fixing this and helping us??

HarveyLink commented 3 months ago

Hi @chandraaa , according to this document, looks like this issue is not related to Mgmt SDK. Maybe you should go to MSAL packages. Or @christothes may have some solutions for that.

christothes commented 3 months ago

MSAL is what I would recommend, as Azure.Identity does not support B2C flows currently.

github-actions[bot] commented 3 months ago

Hi @chandraaa. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

chandraaa commented 3 months ago

@christothes @HarveyLink Guys, we have enabled Azure ADB2c at APIM level. and we are providing access to API's only if properly authenticated by providing azure ADB2C user account details. Issue here is I need add Azure ADB2C user manually at APIM level to onboard into APIM. As I have provided screen shots in my ticket, If i want to onboard azureadb2c user programmaticallly into APIM there is no way. Where as if i have normal user i can easily onboard him to APIM programmatically. I have also added a code snippet how SDK helps u to onboard or add user to APIM but not AzureADB2C user. Hope these details helps you. If not let me know.