r/GraphAPI • • Sep 26 '23

Working with Excessive Microsoft Graph API Permissions

Thumbnail self.cybersecurity
1 Upvotes

r/GraphAPI • • Sep 17 '23

Best alternative for Distribution List management

1 Upvotes

Hi - looks like there are several limitations of Graph API for managing Distribution Lists - e.g. can't list owners, can't change many properties, etc. What's the best alternative API solution for that? Thanks!

(Graph seems fine of course for managing M365 Groups.)


r/GraphAPI • • Aug 15 '23

Device + configuration profiles

1 Upvotes

Hey everyone, Kind of losing it looking through this nonsense documentation. Is there any flipping way to get a configuration profile, list off all devices that are connected to it and it's compliance state?

Or devices, configuration profiles, and the state?

Even if they were 2-3 different exports I can connect them but I can grab the list of profiles /Beta/deviceManagement And the devices /Beta/devices

But I can not find a way to expand either of them enough to connect the dots.

My request is to basically say.. $Configurationpolicyid = "1234abcd" List Devices with this policy and there state.

I. E. CIS policy | workstation | compliant

Any help would be appreciated


r/GraphAPI • • Aug 12 '23

Filter with "eq" operator is returning partial matches - how to get exact matches only?

1 Upvotes

My goal is to get a list of devices assigned to a user in Intune. I'm currently using the /deviceManagement/managedDevices with a filter based on the emailAddress of the user:

/deviceManagement/managedDevices?$filter=emailAddress eq '[email protected]'

but while this call succeeds, it also returns results for users that contain that same email string, for example [email protected]

I only want results for exact matches of the email address, is that possible?


r/GraphAPI • • Aug 09 '23

Open, edit, save, delete MS Office from my application

1 Upvotes

Hey Folks, I am building a java application which should be able to perform user actions on Ms Word stored on sharepoint on cloud.

I am having trouble with SSL when trying to call the necessary MS graph API.

Anyone has a solution for this?


r/GraphAPI • • Aug 01 '23

Cannot Read User Authentication Methods

1 Upvotes

Edit: Never mind. Even Microsoft recommends I just use the HTTP API. I'm just going to use that instead. JFC.

Starting from a Microsoft-provided C# sample application, I tried to write a small script that reads a user's 2FA authentication methods. My app is registered in Azure, with rights for User and Directory ReadWriteAll. I also placed it in the Authentication Administrator role.

When I read a user, I can read the display name, mail, id, etc. However, Authentication is always null. I'm at a loss as to what other rights I need to add. I'm using Visual Studio 2022, GraphServiceClient 2.13.1, Microsoft.Graph 5.12.0. If anyone can shed some light I'd be most grateful.

TokenAcquirerFactory tokenAcquirerFactory = TokenAcquirerFactory.GetDefaultInstance();
IServiceCollection services = tokenAcquirerFactory.Services;
services.AddMicrosoftGraph();
var serviceProvider = tokenAcquirerFactory.Build();
GraphServiceClient graphServiceClient = serviceProvider.GetRequiredService<GraphServiceClient>();
var t = await graphServiceClient.Users.GetAsync((requestConfiguration) =>
{
    requestConfiguration.Options.WithAppOnly();
    requestConfiguration.QueryParameters.Filter = "startsWith(displayName,'<literally any user>')";
    requestConfiguration.QueryParameters.Select = new[] { "*" };
});
foreach (User u in t.Value.ToArray())
{
    //These two work fine
    Console.WriteLine(u.Mail);
    Console.WriteLine(u.Id);
    //Authentication is always null no matter what, and I've checked they indeed have auth phone options
    if (u.Authentication != null)
        foreach (PhoneAuthenticationMethod p in u.Authentication.PhoneMethods)
            Console.WriteLine(p.PhoneNumber + ", " + p.Id);
}

r/GraphAPI • • Jul 17 '23

Report of mailboxes that are shared

1 Upvotes

Hello,

I am new to Graph and trying to find practical reports I can generate and was thinking a good one would be a list of mailboxes (users) that have been shared with others.

Maybe a CSV that lists.

Mailbox Name, Access by, SendAs, Full Control

John CEO, Sally Assistant, SendAs, Full Control

Betsy COO, Bill Assistant, FullControl

Anyone have any insight how I can approach this?

Thanks - starting to feel the power of Graph API!


r/GraphAPI • • May 17 '23

I am getting Access Denied for Microsoft.Graph.Calendar

1 Upvotes

I have created an enterprise App with Calendars.read and it works I added Calendars.READWRITE so I can add events.

Unfortunately, I am getting ACCESS DENIED.

Any help or guidance would be greatly appreciated.


r/GraphAPI • • May 15 '23

Send Chat message to MS Teams as Important?

1 Upvotes

Hi,
I'm trying to set-up a Power Automate flow which forwards important emails to an MS Teams private chat - which is supposed to notify me with a mobile push notification when a certain important email arrives.
I noticed that the only way to bypass the quiet time and send a notification to a user is via sending an important / urgent message to that user in a private chat, teams and channels do not send a push notification.
My question is:
Is it possible to forward emails as a private message to a user with an automated API flow, and have the messages flagged as 'important'?
Power Automate does not have the option to do so, sending normal messages works fine, but I haven't found a way to flag those messages as important or urgent.

Thanks!


r/GraphAPI • • Nov 09 '22

Attendance Reports for Channel Meetings?

1 Upvotes

Hi everyone!

https://learn.microsoft.com/en-us/graph/api/onlinemeeting-get?view=graph-rest-beta&tabs=http

Might sound like a silly newbie question, but would this work for meetings in channels?

I have seen other entries that do not enable that, but this one does not specify if this method enables me to get some sort of attendance out of Channel meetings.

Does anyone have some experience with this? What connectors would you use in power automate, if you use it?


r/GraphAPI • • Nov 03 '22

Get cert from mac keychain for msal auth

1 Upvotes

Hi,

Does anyone know the mac equivalent of doing this? Need to get the cert out of the keychain. I have exported / uploaded to Azure AD app registration already.

windows code:

$CertificatePath = "Cert:\LocalMachine\my\<thumbprint>"

Thanks!


r/GraphAPI • • Oct 06 '22

How do I authenticate without user interaction?

1 Upvotes

I'm building a website and need to grab some data from a a SharePoint list to display on the website.

But, I can't figure out how to authenticate without needing user input. Anyone wanna poiny me in the correct direction.


r/GraphAPI • • Jun 28 '22

Cloud not syncing

1 Upvotes

Hi Guys,

I’ve managed to reset passwords through Graph API using Laravel, however the password only works for cloud applications like Teams or Outlook but not Windows.

Could someone explain what i’m missing? I’m assuming it’s not syncing but how would I get it to sync?


r/GraphAPI • • Jun 26 '22

get adfs Service health

1 Upvotes

Hey guys,

Iam building a powerapp which shows the status of all connectors and certificates of azuread, intune, proxies and so on.

Is there a possibility to get the Status of the adfs connector with graph? I cant find anything 😒


r/GraphAPI • • Apr 21 '22

Pre-built connector functions to integrate with the Microsoft Graph REST API.

Thumbnail
github.com
1 Upvotes

r/GraphAPI • • Mar 07 '22

Web App Document Storage

Thumbnail self.webdev
1 Upvotes

r/GraphAPI • • Jan 27 '22

Assign manager via graph api

Thumbnail self.powershell
1 Upvotes

r/GraphAPI • • Jan 27 '22

Check for existing user with Graph API

Thumbnail self.powershell
1 Upvotes

r/GraphAPI • • Jan 27 '22

New Microsoft Graph PoSH module

Thumbnail self.powershell
1 Upvotes

r/GraphAPI • • Jan 27 '22

Send an E-Mail using the MS-Graph PowerShell Commandlets in 3 steps

Thumbnail
powershell.co.at
1 Upvotes

r/GraphAPI • • Jan 27 '22

AzureAD Powershell Module vs REST via Graph API

Thumbnail self.powershell
1 Upvotes

r/GraphAPI • • Jan 27 '22

Help with Get-MgUser (Graph SDK)

Thumbnail self.powershell
1 Upvotes

r/GraphAPI • • Jan 27 '22

Using Date Filter on Graph API query

Thumbnail self.powershell
1 Upvotes

r/GraphAPI • • Jan 27 '22

Trying to learn MS Graph with PowerShell, having some issues

Thumbnail
self.powershell
1 Upvotes