azure-ad-graph-api

How to display a list of available meeting rooms at present using Microsoft Graph API

本秂侑毒 提交于 2019-12-17 20:42:46
问题 I have been trying to play around with the Microsoft Graph API. I have a situation here. I have assigned some meeting rooms with an email ID and want to know the availability of all. If the rooms are available currently , I should get the name of the meeting room and if possible , the duration for which the room is available. I want to know how to query multiple rooms and return the data. A bit confused about the following APIs, would these help ? https://developer.microsoft.com/en-us/graph

Is it OK to use NaiveSessionCache from Azure-Samples Azure Active Directory OpenId Connect

℡╲_俬逩灬. 提交于 2019-12-14 02:22:47
问题 We are writing a web application similar to Azure-Samples/active-directory-dotnet-webapp-webapi-openidconnect The sample includes NaiveSessionCache.cs, which stores the access token in the ASP.NET Session state for UserObjectId. The code looks reasonable, but I have concerns with regards to the name "Naive". Are there any reasons why I should not use it in production? Vittorio Bertocci's article The New Token Cache in ADAL v2, describes FileCache (for a desktop application) and database

PlatformNotSupported Exception when calling AddUserAsync .NET Core 2.0

别等时光非礼了梦想. 提交于 2019-12-13 12:10:30
问题 I am trying to write some code that creates a user in Azure AD using the Graph API. I started w/ an example off the net, but right now it fails when adding the user, on the line await adClient.Users.AddUserAsync(userGraphObj); In the CreateUser() method below. The error I get is I am using .NET Core 2.0, debugging on Windows 7. Googling around and I found that they brought serialization back for 2.0, but only for specific types. I don't really care. How can I add a user to Azure AD in code?

How to check if user is locked and how do we unlock that user in Azure AD Graph API?

人走茶凉 提交于 2019-12-13 09:34:57
问题 I am looking for AZURE AD Graph API to check whether a user is locked and if locked i need to unlock that particular user using Graph API. Also I have verified the AZURE AD Graph API catalogs mentioned below but i cannot able to find anything related to it. https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/api-catalog 回答1: You cannot unlock a user account. See https://docs.microsoft.com/en-us/azure/active-directory/active-directory-passwords-policy for details of how account lockout

B2C Graph API - insufficient permissions even when Directory.ReadWrite.All is enabled

旧巷老猫 提交于 2019-12-13 05:14:37
问题 Running out of things to try, can anyone please help? Trying to run 'change password' via Postman I get token using app id and secret I can read data from the user profile no problem I grant permissions to Graph API in Azure portal I generate the token again, review it in jwt.io, sample "Device.ReadWrite.All", "Member.Read.Hidden", "Directory.ReadWrite.All", "Domain.ReadWrite.All", "Application.ReadWrite.OwnedBy", "Application.ReadWrite.All" ], I send "password": "Test123456",

Sending an email using Azure SDK

牧云@^-^@ 提交于 2019-12-13 04:17:12
问题 I use azure-graph in my Node.js project: const MsRest = require('ms-rest-azure'); const credentials = await MsRest.loginWithServicePrincipalSecret(keys.appId, keys.pass, keys.tenantId, { tokenAudience: 'graph' }); const GraphkManagementClient = require('azure-graph'); const client = new GraphkManagementClient(credentials, subscriptionId); return client.users.get(principalID); I want to use the Azure SDK also to send emails. I know how to do that in low level using the API directly: But I want

How to create microsoft app password using API?

谁说我不能喝 提交于 2019-12-13 03:26:26
问题 I'm able to create app id using Graph API but app secret/password is not generated with it. I need a way to generate/set a password using APIs. Am I missing something? 回答1: You could create the password via Azure AD Graph API, you can test it in the AAD Graph Explorer. My test sample: Request URL: PATCH https://graph.windows.net/{tenant id}/applications/{application object id}?api-version=1.6 Request body: { "passwordCredentials": [{ "endDate": "2020-08-12T02:54:44.2530506Z", "keyId":

How can I read the mobile value from a B2C user record and transform it to a strongAuthenticationPhoneNumber?

霸气de小男生 提交于 2019-12-13 03:11:16
问题 I have the need to create Azure B2C user accounts programmatically. In a separate user data store I hold pertinent information about the users I need to set up in B2C including their mobile phone number, which we've already been communicating with them on. My business requirement is that this mobile phone number is used as a secondary factor during the user's first-time login/password reset experience. I have an initial login experience which uses an externally-created JWT token to take the

Azure AD B2C Tenant seems corrupted after using AAD Graph Client

假如想象 提交于 2019-12-13 03:03:55
问题 A few days ago, before implementing user management with the Azure Active Directory Graph API (not Microsoft Graph) in our web app for Azure AD B2C users, I was able to log into the Azure Portal, find the Azure Active Directory B2C resource, click on it, and successfully authenticate into it in order to edit policies, view the list of users, etc. (Clicking the tenant in the screenshot used to work!) Now when I click on it, the screen flashes about 10 times, attempting to log my user into the

Azure AD - Deleting an AppRoleAssignment didn't disable the application

走远了吗. 提交于 2019-12-13 02:55:54
问题 I'm working on a service which should be able to disable a user's app. That means for a specific office account, disable a specific application that authenticates against Azure AD. In order to test my service I subscribed for 2 office 365 E1 accounts and an azure trial. For testing disabling of an app, I downloaded Nine on one of my mobile devices and connected with my Office-365 account. Then I queried the Azure Graph API with the following REST requests: GET <BASE>/users And extracted my