I need some help. I am trying to automate my Employee Offboarding using ansible by creating a backup job that will do a final backup of the user’s mailbox, archive, teams, teams chat and personal site. Then restore it to an offsite File Share for long term storage. I’m using the REST API and I can query my Veeam server for Org ID, Repository ID, etc. However, I can not create a job. I think it is because I can list the user ID in the task. Is the User ID based off of the Azure ID? Would I need a separate task that queries my O365 Instance and retrieves that?
Veeam M365 & Ansible
Best answer by Rin
Is the User ID based off of the Azure ID? Would I need a separate task that queries my O365 Instance and retrieves that?
Sorry for the delay Steve. I normally work in the PS word so I had to fire up the lab and see how it worked in the API side.
The Entra ID is used for part of the user ID. The user ID is actually made up of 4 number sets with the beginning made of the domain name. Without the full set of IDs pulled using the get OrganizationUser the return will be “incorrect user ID format”.
This was using the Organizational Users with a search on userName to get a specific result

Then took that D into Organizations User to show how the ID looks in line

Hope this helps out.
Comment
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.