Maintain control of your Microsoft 365 data
Post Reply
deniz.oezdemir
Lurker
Posts: 1
Liked: never
Joined: Feb 20, 2026 8:11 pm
Contact:

Cannot uniquely identify OneDrive users with Get-VEODUser (duplicate names)

Post by deniz.oezdemir »

Hi everyone,

I’m trying to export all OneDrive users’ data as ZIP files using PowerShell.

The issue I’m running into is that some users have the same display name.
Get-VEODUser returns a VBOOneDriveUser object that only contains the following properties according to the documentation:
https://helpcenter.veeam.com/docs/vbr/e ... tml?ver=13
  • Name
  • Organization
  • Base64UniqueKey
The Base64UniqueKey does not appear to be usable anywhere else in the PowerShell cmdlets, so I assume it is an internal identifier.

Because of this, I can’t uniquely identify which user is which when multiple users share the same name.

Here’s the relevant part of my script:

Code: Select all

$session = Start-VEODRestoreSession -RestorePoint $rp -Job $job
$user = Get-VEODUser -Session $session | Where-Object Name -eq $username
Save-VEODDocument -User $user -Path $target -AsZip
If two users have the same display name, $user returns multiple objects and I can’t reliably select the correct one.

Has anyone solved this before?

Is there a way to retrieve a unique identifier (UPN, email address, ObjectId, etc.) from Get-VEODUser, or another method to uniquely match users?
Or, is there another way to export onedrive data?

Thanks in advance!
Post Reply

Who is online

Users browsing this forum: Yann.S and 2 guests