Get Email Folders for a User

Retrieve all the email folders that are in the specified user's mailbox.

📘

Note: This operation is part of the Outlook Book (BDK). To use this book, you need to first learn it in your agent.

Note: It requires the following permissions on the application: Mail.Read, Mail.ReadWrite, Mail.ReadBasic, Mail.ReadBasic.All, Mail.ReadWrite.Shared

Input Concepts

ConceptDescriptionTypeRequired
userThe user whose email folders will be retrievedoffice userYes

Output Concepts

ConceptDescriptionType
user's email foldersAll the email folders for the useroutlook email folder

Examples

Retrieve all email folders for the specified user

get users from office365 whose mail is "[email protected]"
use the first user as the user
retrieve the user's email folders

Retrieve all email folders for the specified user that match provided name

get users from office365 whose mail is "[email protected]"
use the first user as the user
retrieve the user's email folders whose "displayName" is "Inbox"