Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

graph-mailbox-user-purpose

The repository contains the PowerShell script for reading the user purpose of the mailbox either for a specific user or for all users in the tenant.

Prerequisities

  • Register the app in Azure ADD with the following application permissions
    • MailboxSettings.Read
    • User.Read.All
  • Create a new client secret
  • Install the Microsoft.Graph PowerShell module

Examples

Read the user purpose of a specific user

Get-UserMailboxSettingUserPurpose `
    -ClientId "<client_id>" `
    -TenantId "<tenant_id>" `
    -Secret "<client_secret>" `
    -UserId "<user_id> or <service_principal_name>"

Read the user purpose for all users in the tenant

Get-UsersMailboxSettingUserPurpose `
    -ClientId "<client_id>" `
    -TenantId "<tenant_id>" `
    -Secret "<client_secret>" `

About

PowerShell script to read the purpose of the mailbox

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages