I am trying to figure out the maximum length of the ID of the Office 365 item. E.g. there is DirectoryObject resource type https://learn.microsoft.com/en-us/graph/api/resources/directoryobject?view=graph-rest-1.0. It has an ID field but the maximum length of this field is not mentioned anywhere.
Similarly, for Exchange online we have mailbox IDs. Is there any document that mentions the maximum length of these Office 365 items (DirectoryObject, Drive, DriveItem, Teams/Channel ID, Mailbox, etc.) Or if there any programmatic way of figuring out the maximum length? Please let me know.