Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
66 views

Microsoft Graph API Bulk Reset Users Password

I'm using the following code to reset multiple users' passwords in one go, but it isn't working: public async Task<IActionResult> BulkResetPassword([FromBody] string[] userIds) { var ...
chiminhtathoj's user avatar
0 votes
1 answer
108 views

Trying to assign Azure AD B2C users to a group through external c# app using Microsoft Graph - .PostAsync Error CS1061

I have an app that is used to enrol new users into an Azure AD B2C tenant, but really struggling to get a certain feature working. If anyone has any suggestions it would be greatly appreciated! The ...
Prime Capybara's user avatar
0 votes
2 answers
371 views

How to retrieve authentication/emailmethods values of a user using Microsoft Graph SDK?

I'm retrieving the users from Azure AD with the following code. I want to retrieve the authentication\emailmethods and the email address. I set up the API Permissions as mentioned on this page. ...
wonderful world's user avatar
0 votes
1 answer
1k views

How to retrieve 'custom user attribute' values using Microsoft Graph SDK?

I'm retrieving the users from Azure AD with the following code. The user has a custom user property called subscription. I want to retrieve the value for subscription for every user. I can't find the ...
wonderful world's user avatar
0 votes
2 answers
466 views

Azure B2C reset password via graph api sdk

Can I reset a person's password using Azure B2C, Client Credential authentication and Graph API? I'm trying, as shown below, but I'm getting an error. Error: the user is not authorized to access this ...
emrekara's user avatar
0 votes
1 answer
3k views

How to interact with Azure AD B2C custom User Attributes via Microsoft Graph PowerShell SDK?

I have added a custom User Attribute named Company Name via: Azure AD B2C > User attributes so that this information can be returned in the identity token after successful sign in. I want to update ...
user1063287's user avatar
  • 10.9k
1 vote
2 answers
2k views

Azure AD B2C reset password options when calling Microsoft Graph from an API

Is there any way to reset a B2C user's password from a b2c app granted only application permissions for Microsoft Graph? We have a scenario where there are non email users in a multi-tenant app and we ...
JayChase's user avatar
  • 11.6k
0 votes
2 answers
579 views

Microsoft.Graph.GraphServiceClient how to limit properties returned?

I am using Azure AD B2C. I was hoping to get a count of the number of users - however, according to the documentation: Azure AD B2C currently does not support advanced query capabilities on directory ...
bdcoder's user avatar
  • 3,900
1 vote
2 answers
371 views

Request_UnsupportedQuery: Filtering B2C users with domain name

We figured out finding way to list only B2C users by using filter. We tried to filter users with their B2C domain name like GET https://graph.microsoft.com/v1.0/users?$filter=endswith(mail,'@b2ctenant....
user20262's user avatar
0 votes
1 answer
1k views

GraphServiceClient returning user object with missing properties for Azure AD B2C User

I have a React SPA that communicates with my backend API (Azure Function App). I've created an app registration for both the SPA and the Azure Function App and I'm able to successfully authenticate ...
Frosty619's user avatar
  • 1,499
0 votes
1 answer
1k views

how to get Azure AD b2c sign-in logs through Microsoft Graph programatically

I need to get Azure AD B2C sing-in logs through Microsoft Graph API, I tried the following code it doesn't return any logs. var scopes = new[] { "https://graph.microsoft.com/v1.0/auditLogs/...
MJ X's user avatar
  • 9,094
0 votes
1 answer
1k views

Azure B2C throw Access token validation failure. Invalid audience

I'm trying to use Microsoft Azure B2C AD in my react app and using graph SDK to try to get user information in react app. I'm successfully able to log in using user flow and also get ID-Token after ...
Mohmad sabban's user avatar
0 votes
1 answer
419 views

Blazor WASM using Azure AD B2C fails calling Microsoft.Graph api

Situation: Hosted Blazor WASM using Azure AD B2C Graph API registerd Step 1 is working fine I can login and I get an access token with the correct claims so I can call my backend API. When I turn on ...
Niek Jannink's user avatar
  • 1,196
2 votes
1 answer
566 views

Azure B2C Tenant and Graph API, user management

This is regarding an application where we are using Azure B2C tenant for authentication. There is a requirement to get lists of users which would support filtering, pagination and users have to be ...
Sumeet's user avatar
  • 21
3 votes
1 answer
2k views

Create user custom attribute for whole B2C instance via graph api or graph sdk

I want to create 'user custom attribute' for whole b2c instance via graph api or sdk. Just like I do thru Azure Portal following ms documentation quoted below. 1. Sign in to the Azure portal as the ...
freak_geek's user avatar

15 30 50 per page