question

AmineBOUHADJAR-0803 avatar image
0 Votes"
AmineBOUHADJAR-0803 asked ·

Microsoft Graph API address book policy

I have a code that creates an office365 account using Microsoft Graph API. Everything works fine but now i have to add an address book policy to the account after creating it.

I can't find anything on how to achieve this, is it possible to do such thing with the API ?

I also found this : https://docs.microsoft.com/en-us/exchange/address-books/address-book-policies/create-an-address-book-policy

Can i use this with php exec() function ?

microsoft-graph-users
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

michev avatar image
0 Votes"
michev answered ·

There's no support for Address book policies via Graph APIs, nor they are supported in Exchange Online for that matter.

· 2 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for your answer, but aren't they supported in Exchange Online ?

https://docs.microsoft.com/en-us/exchange/address-books/address-books

0 Votes 0 ·
michev avatar image michev AmineBOUHADJAR-0803 ·

Oh, I was thinking about "email address policies", my bad. So yes, they are supported in ExO, however Graph API does not have any endpoints corresponding to Exchange Online admin operations. You can use PowerShell though.

1 Vote 1 ·