Thursday, 19 May 2022
AD B2C Filter user email by mobile phone C#
private async Task GetMailByPhoneNumber(GraphServiceClient graphClient, long mobileNumber)
{
UserDetailsEntity userDetailsEntity = new UserDetailsEntity();
string mobilePhone = Convert.ToString(mobileNumber);
List
Wednesday, 18 May 2022
Azure AD B2C Filter on Email for User details
var filterString = $"Identities/any(id:id/Issuer eq 'abc.onmicrosoft.com' and id/IssuerAssignedId eq 'abc@xyz.com')";
var officeUser = await graphClient.Users
.Request()
.Filter(filterString)
.Select(e => new
{
e.DisplayName,
e.Mail,
e.Id
})
.GetAsync();
Thursday, 5 May 2022
Graph API with AD B2C
https://docs.microsoft.com/en-us/graph/auth-v2-service
https://www.c-sharpcorner.com/article/authenticate-and-generate-microsoft-graph-accesstoken-appid-using-ms-graph-net/
https://docs.microsoft.com/en-us/graph/auth-v2-user#2-get-authorization
Subscribe to:
Posts (Atom)