skip to Main Content

Use $filter query parameter on /groups/{id}/members with Graph API for Azure B2C Tenant

Performing the following HTTP request to the Microsoft Graph API: GET https://graph.microsoft.com/v1.0/groups/{id}/members?$count=true&$filter=startswith(displayName, 'a') ConsistencyLevel: eventual Results in the following response when querying users for an Azure B2C tenant: { "error": { "code":"Request_UnsupportedQuery", "message":"The specified filter to the reference property query…

VIEW QUESTION

microsoft graph:You cannot perform the requested operation, required scopes are missing in the token – PHP

I am calling one Microsoft graph API from my PHP application, API is https://graph.microsoft.com/beta/policies/identitySecurityDefaultsEnforcementPolicy my code is like below $graph = new Graph(); $graph->setAccessToken(session('my_token')); try{ $response = $graph->createRequest("GET", "/policies/identitySecurityDefaultsEnforcementPolicy")->execute(); } catch(Exception $e){ dd($e); } $arr = $response->getBody(); dd($arr); but it…

VIEW QUESTION

Oauth2 refresh_token doesn't exists – PHP

I use below code but when I login via Microsoft account I don't receive refresh_token. Someone can explain why? $login = 'https://login.microsoftonline.com/xxxxxxxxxxxxxxxxxxxxxxxxx/oauth2/v2.0/authorize?'.http_build_query([ 'client_id' => $id, 'scope' => 'https://outlook.office.com/IMAP.AccessAsUser.All', 'redirect_uri' => $redirect, 'response_type' => 'code', ]);

VIEW QUESTION
Back To Top
Search