Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/martinm85/graph-mailbox-user-purpose
- Owner: MartinM85
- License: mit
- Created: 2023-08-04T13:13:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-04T18:10:27.000Z (over 1 year ago)
- Last Synced: 2023-08-04T19:29:49.389Z (over 1 year ago)
- Language: PowerShell
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 "" `
```