Add User to Users and Roles per PS

PowerShell script exchange

Add User to Users and Roles per PS

Veeam Logoby joe@kmits » Wed Feb 15, 2017 10:14 am

Hi all,

I want to add users to Veeam and the manually way, over "User an Roles" is quite easy.
Now I was wondering if it would be possible to do this over PowerShell, but I couldn´t find any parameters or documentation for it.
Does anyone know if this is possible?

Thanks for all replys
joe@kmits
Novice
 
Posts: 7
Liked: never
Joined: Tue Feb 14, 2017 2:08 pm
Full Name: Joachim hacker

Re: Add User to Users and Roles per PS

Veeam Logoby joe@kmits » Thu Feb 16, 2017 1:59 pm

So our company opened a ticket by Veeam and we got the answer, that it is not possible to add users to "Users and Roles" by PS
joe@kmits
Novice
 
Posts: 7
Liked: never
Joined: Tue Feb 14, 2017 2:08 pm
Full Name: Joachim hacker

Re: Add User to Users and Roles per PS

Veeam Logoby tsightler » Thu Feb 16, 2017 2:37 pm

Yes, support will only give you the official supported options, while sometimes, we here on the forums can get a little more creative and come up with non-supported, but still functional methods of doing things that need to be done. However, just to be clear, are you referring to the users/roles in the Windows based VBR console or in the web based enterprise manager? In enterprise manager the users/roles can be configured via the REST API, which you could do from Powershell as well.
tsightler
Veeam Software
 
Posts: 4841
Liked: 1787 times
Joined: Fri Jun 05, 2009 12:57 pm
Full Name: Tom Sightler

Re: Add User to Users and Roles per PS

Veeam Logoby joe@kmits » Mon Feb 20, 2017 7:58 am

I´m referring to the users/roles in the Windows based VBR console.
joe@kmits
Novice
 
Posts: 7
Liked: never
Joined: Tue Feb 14, 2017 2:08 pm
Full Name: Joachim hacker

Re: Add User to Users and Roles per PS

Veeam Logoby v.Eremin » Mon Feb 20, 2017 11:19 am

Support team were indeed correct in saying that those roles are not configurable via PowerShell at the moment. Thanks.
v.Eremin
Veeam Software
 
Posts: 13558
Liked: 1006 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Add User to Users and Roles per PS

Veeam Logoby tsightler » Mon Feb 20, 2017 2:06 pm

Normally users and roles are recommended to be handled via Windows security groups. You can assign security groups to the roles, then easily add/remove users to the Windows groups problematically. However, for now the initial assignment of roles to security groups can only be done via the GUI, which usually isn't too bad since it's normally a one time operation, however, if it's this latter function that you need to do (perhaps you have many VBR servers or something) I can look into alternative methods to do this.
tsightler
Veeam Software
 
Posts: 4841
Liked: 1787 times
Joined: Fri Jun 05, 2009 12:57 pm
Full Name: Tom Sightler

Re: Add User to Users and Roles per PS

Veeam Logoby joe@kmits » Tue Feb 21, 2017 7:06 am

Well that´s exactly what we need. For we try to create a script that does everything automatically and adding users is the last thing thats missing :)
joe@kmits
Novice
 
Posts: 7
Liked: never
Joined: Tue Feb 14, 2017 2:08 pm
Full Name: Joachim hacker

Re: Add User to Users and Roles per PS

Veeam Logoby tsightler » Tue Feb 21, 2017 3:11 pm

OK, I'll poke at it and see if I can come up with something creative.
tsightler
Veeam Software
 
Posts: 4841
Liked: 1787 times
Joined: Fri Jun 05, 2009 12:57 pm
Full Name: Tom Sightler

Re: Add User to Users and Roles per PS

Veeam Logoby joe@kmits » Thu Feb 23, 2017 6:42 am

Thanks - it would be awesome, if you could come up with a solution :)
joe@kmits
Novice
 
Posts: 7
Liked: never
Joined: Tue Feb 14, 2017 2:08 pm
Full Name: Joachim hacker


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 5 guests