Comments on: Microsoft Is Moving the Office 365 Service Communications API to the Graph https://practical365.com/moving-office365-service-communications-api-graph/ Practical Office 365 News, Tips, and Tutorials Thu, 22 Sep 2022 13:58:46 +0000 hourly 1 https://wordpress.org/?v=6.3.2 By: Sanjeev https://practical365.com/moving-office365-service-communications-api-graph/#comment-243437 Thu, 22 Sep 2022 13:58:46 +0000 https://practical365.com/?p=52664#comment-243437 Hello Everyone,
Can someone help me with GraphAPI ps1 script?
Thanks in advance!

]]>
By: Tony Redmond https://practical365.com/moving-office365-service-communications-api-graph/#comment-241452 Wed, 03 Aug 2022 09:14:27 +0000 https://practical365.com/?p=52664#comment-241452 In reply to Jaiswal Ashish.

When in doubt, always consult the documentation: https://docs.microsoft.com/en-us/office/office-365-management-api/get-started-with-office-365-management-apis

This says that ServiceHealth.Read and User.Read is necessary. I use ServiceHealth.Read.All and ServiceMessage.Read.All (I just checked the Azure AD app). I forget why I selected these permissions, but it might have been through trial and error. It’s over a year since I wrote this article.

Make sure that they are application permissions, not delegated permissions.

As to spam, the site is plagued by a large amount of incoming spam that insists that people want to read about various pills and other body enhancements. No one wants to see that kind of crap.

]]>
By: Jaiswal Ashish https://practical365.com/moving-office365-service-communications-api-graph/#comment-241450 Wed, 03 Aug 2022 08:41:38 +0000 https://practical365.com/?p=52664#comment-241450 In reply to Tony Redmond.

I have the exact same permission as you mentioned in this article, Please advise if more permissions are required? I am unable to share screen capture to you via this message.

Also, this spam protection on your page/article is horrendous this is 105th time I am trying to add my reply
SPAM Message
SPAM ID
Duplicate Message
Try after sometime
Not happy being a genuine guy to ask a question

]]>
By: Tony Redmond https://practical365.com/moving-office365-service-communications-api-graph/#comment-241400 Tue, 02 Aug 2022 15:09:22 +0000 https://practical365.com/?p=52664#comment-241400 In reply to Ashish Jaiswal.

I suspect you have a permissions issue. I tried the queries and the first two worked like a charm. The last didn’t because MC408531 doesn’t exist in my tenant.

]]>
By: Ashish Jaiswal https://practical365.com/moving-office365-service-communications-api-graph/#comment-241398 Tue, 02 Aug 2022 14:55:52 +0000 https://practical365.com/?p=52664#comment-241398 In reply to Tony Redmond.

Hi Tony,
I am expeirencing the same issue. I am using graph explorer. I only see the old message and not the new ones.
Below is my query
https://graph.microsoft.com/v1.0/admin/serviceAnnouncement/messages

I thought I would be a paging issue hence I used the below query and still no new message
https://graph.microsoft.com/v1.0/admin/serviceAnnouncement/messages?`$top=100

To my surprise when I search with the message ID it shows the new message
https://graph.microsoft.com/v1.0/admin/serviceAnnouncement/messages/MC408531

Could you please guide me what am I doing wrong here and why can’t I see the new messages?

Regards,
Ashish Jaiswal

]]>
By: Tony Redmond https://practical365.com/moving-office365-service-communications-api-graph/#comment-237857 Fri, 25 Feb 2022 10:25:25 +0000 https://practical365.com/?p=52664#comment-237857 In reply to Claudiu.

I obviously don’t have access to your code and can’t say what might be going on. What do you see in the Graph Explorer? I pasted the link into it and see recent advisories (example shown below).

{
“createdDateTime”: “2022-02-23T18:59:36.417Z”,
“postType”: “regular”,
“description”: {
“contentType”: “html”,
“content”: “Title: Admins may be unable to use the \”Get-EXOMailbox\” PowerShell cmdlet in tenants hosted across multiple geo-locationsUser Impact: Admins may be unable to use \”Get-EXOMailbox\” in tenants that are hosted across multiple geo-locations.Current status: Our deployment to the affected infrastructure is ongoing and is expected to take some time to complete. We anticipate completion of the fix deployment by our next update on Wednesday, March 2, 2022.Scope of impact: This issue may impact any admin attempting to use the Get-EXOMailbox cmdlet in tenants hosted across multiple geo-locations.Estimated time to resolve: We anticipate completion of the fix deployment by our next update on Wednesday, March 2, 2022.Root cause: ACLs on database copy objects are mismatched, leading to validation failing and ADLookup not completing.Next update by: Wednesday, March 2, 2022, at 8:30 PM UTC”
}
}
]

]]>
By: Claudiu https://practical365.com/moving-office365-service-communications-api-graph/#comment-237854 Fri, 25 Feb 2022 08:11:22 +0000 https://practical365.com/?p=52664#comment-237854 Hello Tony,

I am using Graph API to extract the incidents (advisory and incidents) using a power flow.

But I have an issue with https://graph.microsoft.com/v1.0/admin/serviceAnnouncement/issues because is extracting only some old incidents and the new ones are not present in my output.

Do you have an idea why is not getting all the incidents?

]]>
By: Tony Redmond https://practical365.com/moving-office365-service-communications-api-graph/#comment-237367 Tue, 21 Dec 2021 15:01:38 +0000 https://practical365.com/?p=52664#comment-237367 In reply to Frank Hanser.

Hi Frank,

The error means that you don’t have any data in the array ($Issues) you’re trying to use. Maybe the parameters you used for the Graph API call aren’t correct?

]]>
By: Frank Hanser https://practical365.com/moving-office365-service-communications-api-graph/#comment-237361 Tue, 21 Dec 2021 13:12:56 +0000 https://practical365.com/?p=52664#comment-237361 Hi Tony

I tried out your code in my tenant and always get an error:

It is not possible to apply an index to a NULL array.
In line: 35 characters: 1
+ $ PostInfo = $ Issues.Posts [$ LastPostIndex] .Description.Content
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
+ CategoryInfo: InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId: NullArray

Next problem I have is to post the data to a teams channel like Einar Asting did http://thingsinthe.cloud/Teams-message-cards-Office-365-Health-status/

I am relativ new to O365 and powershell and it makes me a great headache.

I subscribed Office 365 for IT Pros and it is very helpful. But it is a long learning path for me.

Thanks for your great blog.

Greetings from Germany.

Kindly regards

Frank

]]>