Maintain control of your Microsoft 365 data
Post Reply
Cia91
Influencer
Posts: 10
Liked: never
Joined: Mar 29, 2017 8:38 am
Contact:

How Get-VBOOrganizationGroupMember works?

Post by Cia91 »

Hello everyone i'm playing with some powershell, my ultimate goal is to be able to list all the mailboxes processed in the last job run.

I've found this little code that from my understanding is able to list all the user in a group, and since i'm using dynamic group as the source for the jobs i've tried it:

Code: Select all

$organization = Get-VBOOrganization
$group = Get-VBOOrganizationGroup -Organization $organization -DisplayName "VBO EXO Test Job"
Get-VBOOrganizationGroupMember -Group $group
The thing i don't understand is that this code is returning a user, this user was present in this dynamic group before, but now it has been removed. In fact, if i run the job on Veeam i get:
  • Object processed: 0
    Nothing to process
For some reason the powershell still see this user in this group, where the command Get-VBOOrganizationGroupMember get the data? Is the source different from the one used by Veeam VBO for it's job?
Polina
Veeam Software
Posts: 3093
Liked: 744 times
Joined: Oct 21, 2011 11:22 am
Full Name: Polina Vasileva
Contact:

Re: How Get-VBOOrganizationGroupMember works?

Post by Polina »

Hi,

The list of users (mailboxes, etc) processed on the last job (i.e. protected in a specific restore point) is provided via our REST APIs, it's not available via PowerShell.

The Get-VBOOrganizationGroupMember cmdlet by default returns organization objects synchronized to our cache. This sync is scheduled to run automatically every 24h, and if needed you can initiate it manually with the Start-VBOOrganizationSynchronization.
Post Reply

Who is online

Users browsing this forum: No registered users and 93 guests