Questions tagged [azure-ad-graph-api]

Use this tag for Azure AD Graph API (see link [1] in details below) related questions (not Microsoft Graph). The Azure Active Directory Graph API provides programmatic access to Azure AD through REST API endpoints. Applications can use the Graph API to perform create, read, update, and delete (CRUD) operations on directory data and objects

Graph API supports the following common operations for a user object:

  • Create a new user in a directory
  • Get a user’s detailed properties, such as their groups
  • Update a user’s properties, such as their location and phone number, or change their password
  • Check a user’s group membership for role-based access
  • Disable a user’s account or delete it entirely

In addition to user objects, you can perform similar operations on other objects such as groups and applications.

Useful Links:

  1. Documentation
  2. MSDN: Azure AD Graph API Reference
  3. Microsoft Graph or Azure AD Graph
1920 questions
0
votes
1 answer

Adding group members via Azure Graph API and Powershell

I have managed to connect to the Graph API and I'm able to pull data without any issues. I now want to add a user to a group and I cannot for the life of me get it to work. The MS documentation says its POST…
0
votes
1 answer

Authorization request to get access on behalf of a user results in a 'cookiesDisabled' page

I'm trying to do an Authorization request following the documentation about it on Microsoft (Getting access on behalf of a user: https://learn.microsoft.com/en-us/graph/auth-v2-user). I'm making the request using Azure's Logic Apps. I already made…
0
votes
1 answer

Unable to update AAD application setting through graph api explorer

I tried to update Azure AAD application setting through Graph explorer but getting error as MethodNotAllowed https://developer.microsoft.com/en-us/graph/graph-explorer I even tried samples given by below Microsoft official document but still…
S.Chandra Sekhar
  • 453
  • 3
  • 11
  • 22
0
votes
1 answer

Azure App Registration - scopes and permissions

I have a windows service app which needs to authenticate with Azure AD for multiple service accounts...each instance will have a different service account. (say I have 3 instances on 3 different servers with 3 different service accounts - S1, S2,…
0
votes
1 answer

Hit welcome page of a sharepoint site using postman

I have a sharepoint site hosted at: https://xxxxx.sharepoint.com, which has a subsite named abc when I type in https://xxxx.sharepoint.com/abc in the browser, it redirects to the welcome page of the subsite automatically, which is…
0
votes
1 answer

Azure AD Graph API - Get Group Memberships in one shot

I am working on a project to audit security on the Azure platform. As such, it is necessary to iterate Azure AD Groups to ascertain direct and transitive Group membership. While there is a route for "get all Groups", there is no documented route for…
0
votes
1 answer

ForEachLoop not working in PowerShell, but I have full access what is the issue?

enter image description here Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue $count #$farm = Get-SPFarm $siteList = Get-SPSite -Limit 1 $serviceContext = Get-SPServiceContext($siteList[0]) $profileManager = New-Object…
0
votes
1 answer

How to get same lastModifiedDateTime when creating/saving contacts in outlook contacts through microsoft graph api

When creating/updating contact through microsoft graph api - I get lastModifiedDateTime in response and I save it to database but when I fetch all contacts through microsoft graph explorer I see same lastModifiedDateTime for same contact differ by 2…
0
votes
1 answer

how to create event in calendor using microsoft graph api?

I have created bot using bot framework 4, I am creating an event in the calendar using graph API, but it is not working, IPublicClientApplication publicClientApplication = PublicClientApplicationBuilder …
Priya
  • 141
  • 4
  • 10
0
votes
2 answers

Azure Identity Protection - Risk Detection API - Filter by date

I am trying to filter the RiskDetection data retrieved from Azure Identity Protection by date and so far no success. For the below sample data below filter by activityDateTime (or any date fields in the sample data) show internal error in the…
Ashish Gupta
  • 14,869
  • 20
  • 75
  • 134
0
votes
1 answer

Azure service principal creation through Graph API

I am able to register application by following information provided in Creating Azure AD application and a service principal using .NET Core (the API and HTTP), but when I tried the following endpoint using Postman, I got an Insufficient Privileges…
James
  • 75
  • 3
  • 9
0
votes
1 answer

Get user profile from Azure AD using graph api

I want to develop a timer job (C#), which will run at background without any logged in user, through which i need to fetch user profile (profile image and job title) from Azure AD using a graph api. I want to achieve this using delegated permissions…
0
votes
1 answer

How can I run an Azure Function every time a meeting is created in Office 365?

I've been tasked with coming up with a way to insert a link into all of our meeting invites in Office 365. This link will be different based on the location of the meeting. At a high level, how can I use something like an Azure function to run some…
Dbloom
  • 1,302
  • 3
  • 18
  • 45
0
votes
1 answer

How to get Authorization Code from Azure App using HTTP Request in C#?

I have created a .Net Application and to access certain outlook graph API's i need to fetch the access token and to get this access token i want authorization code which need to be passed. As far as the article for Authorization Code Flow, I have…
0
votes
1 answer

Exception while invoking Graph API URL

We are receiving an error for a single user when using the Graph API. We are not receiving this error for other user accounts. The process is going through e-mail subjects looking for subjects that begin with certain phrases. If they begin with…