Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] "Import-SafeguardUser" cmdlet in PowerShell #504

Open
sasaki1215 opened this issue Nov 16, 2023 · 1 comment
Open

[Question] "Import-SafeguardUser" cmdlet in PowerShell #504

sasaki1215 opened this issue Nov 16, 2023 · 1 comment

Comments

@sasaki1215
Copy link

Hello,

I'm trying to import SPP local users by using "Import-SafeguardUser" cmdlet in PowerShell.

However, when multiple AdminRoles are set, import is failed.

Here is the csv I imported for my test.

Provider,NewUserName,FirstName,LastName,Description,AdminRoles,Password
Local,TestUser999,MyTest,User999,Import Test,"[""GlobalAdmin"",""AssetAdmin"",""ApplianceAdmin""]",Test1234

Unable to verify argument for parameter 'AdminRoles'.
The argument "["GlobalAdmin","AssetAdmin","ApplianceAdmin"]" is the set specified by the ValidateSet attribute "GlobalAdmin,DirectoryAdmin,Auditor,ApplicationAuditor,SystemAuditor,AssetAdmin,ApplianceAdmin,PolicyAdmin,UserAdmin,HelpdeskAdmin,OperationsAdmin,All" does not belong to

Would you please let me know how to import users with multiple AdminRoles?
(If "ALL" or a single AdminRole is set as "Admin Roles" column, the import is successed.)

Best Regards,

@JeffHarkavy
Copy link
Contributor

@sasaki1215 Many, many apologies for the long silence. This was finally chased down and identified as a bug that I fixed in PR #517. You may try the pre-release version of safeguard-ps v7.5.141378-pre or later in the PowerShell Gallery. The official fix will be issued with the release of Safeguard for Privileged Passwords v.7.5 (release date TBD).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants