add multiple users to group with variable
Hello all,
I was wondering if it is possible to add multiple users to a group using a variable in PowerShell. What information Could I also get more detailed instructions on how to add a user to a group?
I see in the documentation that the format should follow the below:
""op add user <user> [<vault> | <group>]"
"
When I try to use:
""op add user $variablehere group name here"
"
I get an invalid request.
0
Comments
-
Hey @Kennyties ,
There's no way that I know of to add multiple users with a single command.
Perhaps you can do that with a loop in your script that will run theop add
command for as many users you have in an array :)0 -
Yep, definitely the right direction :+1:
0 -
Thanks!
0 -
:+1: :)
0
This discussion has been closed.