Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/martinm85/graph-mailbox-user-purpose

PowerShell script to read the purpose of the mailbox
https://github.com/martinm85/graph-mailbox-user-purpose

Last synced: 25 days ago
JSON representation

PowerShell script to read the purpose of the mailbox

Awesome Lists containing this project

README

        

# 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 "" `
-TenantId "" `
-Secret "" `
-UserId " or "
```

### Read the user purpose for all users in the tenant
```
Get-UsersMailboxSettingUserPurpose `
-ClientId "" `
-TenantId "" `
-Secret "" `
```