Maintain control of your Microsoft 365 data
Post Reply
HavardBakke
Service Provider
Posts: 3
Liked: never
Joined: Sep 10, 2024 8:20 am
Full Name: Havard Bakke
Contact:

Powershell - List all users in job based on organization

Post by HavardBakke »

Hello,

We are trying to export a list of all users for an organization with two jobs (Exchange split into its own job).
We are finding that getting a list without duplicates is practically impossible without manually going through it and removing duplicates or connecting it to other sources. (unless i am missing something).
This is specifically for users that are deleted in M365, since the currently active users can be queried and correlated against M365.
Objects like displayname and email does not always match between to two jobs when we pull the data with Get-VBOEntityData.

Having an option to pull this information based on the organization would be really helpful.

Get-VBOBackupItem will not work, since in the job the entire organization is selected and exclude is used on the resources it should not contain.
MaartenA
Service Provider
Posts: 135
Liked: 51 times
Joined: Oct 31, 2021 7:03 am
Full Name: maarten
Contact:

Re: Powershell - List all users in job based on organization

Post by MaartenA »

Get-VBOOrganizationUser can help you i think?

See https://helpcenter.veeam.com/docs/vbo36 ... html?ver=8
HavardBakke
Service Provider
Posts: 3
Liked: never
Joined: Sep 10, 2024 8:20 am
Full Name: Havard Bakke
Contact:

Re: Powershell - List all users in job based on organization

Post by HavardBakke »

That command pulls the information from users that exist in the tennant from what i understand, it wont contain users deleted in the M365 tenant sadly.
Polina
Veeam Software
Posts: 3888
Liked: 976 times
Joined: Oct 21, 2011 11:22 am
Full Name: Polina Vasileva
Contact:

Re: Powershell - List all users in job based on organization

Post by Polina »

Hi Havard,

Sorry, I read it two times but still unsure which users you would like to list - those that are currently included into your backup jobs, those that are already protected/backed up, or those that are available for protection in your tenant organization?
Also, what is the end goal? Am I correct that you want to ensure that your job scopes do not overlap?
HavardBakke
Service Provider
Posts: 3
Liked: never
Joined: Sep 10, 2024 8:20 am
Full Name: Havard Bakke
Contact:

Re: Powershell - List all users in job based on organization

Post by HavardBakke »

Hello Polina,

Our goal is to list out all users included in repos for organizations.
Exsisting users that are actively beeing backup up and users that have been deleted in M365 but are still retained in the backup.
For customers with only one repo this it works with just querying the repo, but for customers with split jobs we cannot find a way to do this without getting duplicates.
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests