Share via

Microsoft Graph Id

Andreas Østerby Holst Rasmussen 21 Reputation points
2022-07-29T12:59:37.77+00:00

Hello!
I am trying to make an app that integrates the Microsoft Graph API. I'd like to know if the Graph Id of an email message has a certain structure that I may be able to use for regex.
To avoid confusion about which Id I am talking about, here is an example:

AAMkADRlZjU3OTNlLTg0GmUtNGVjMi04M2MzLWMyZjgxZGIzYzRiNwBGAAAAAAC2q4a-PLgTSqf1CcWdmjI6BwCi6N1IpT6ET5VZla6iFeqSAAAAAAEMAACi6N1IpT6ET5VZla6iQeqSAAAGisIBAAA=

A couple of factors I have considered are:

  1. Does the ID always start with "AA" and end with "AAA="
  2. Is the ID always 152 characters long?

Thank you in advance!

//Andreas

Microsoft Security | Microsoft Graph
0 comments No comments

Answer accepted by question author

  1. AtulThorat-MSFT 391 Reputation points
    2022-07-29T15:26:34.127+00:00

    Hi @andreassterbyholstrasmussen-1246,

    Hope you are doing well.

    After analyzing 100 mail messages using below graph API endpoint,

    GET https://graph.microsoft.com/v1.0/me/messages?$select=id&$top=100

    226243-message-id.png

    I can share below information,

    Does the ID always start with "AA" and end with "AAA="

    So for these 100 messages ID is starting with "AA" and end with "AAA="

    Is the ID always 152 characters long?

    ID's length is 152 characters for all of them

    Hope this helps.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.