- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
06-07-2023 05:34 PM
Code snippet here, the body I'm sending in the request (in powershell);
$user = @{
memberName = $username
searchIn = $domain
membershipExpirationDate = ''
MemberType = "User"
Permissions = @{
useAccounts = $true
retrieveAccounts = $true
listAccounts = $true
addAccounts = $true
updateAccountContent = $true
updateAccountProperties = $true
initiateCPMAccountManagementOperations = $true
specifyNextAccountContent = $true
renameAccounts = $true
deleteAccounts = $true
unlockAccounts = $true
manageSafe = $true
manageSafeMembers = $true
backupSafe = $true
viewAuditLog = $true
viewSafeMembers = $true
accessWithoutConfirmation = $true
createFolders = $true
deleteFolders = $true
moveAccountsAndFolders = $true
requestsAuthorizationLevel1 = $true
requestsAuthorizationLevel2 = $false
}
}
But the response always shows this, all the permissions being set to false:
permissions : @{
useAccounts=False;
retrieveAccounts=False;
listAccounts=False;
addAccounts=False;
updateAccountContent=False;
updateAccountProperties=False;
initiateCPMAccountManagementOperations=False;
specifyNextAccountContent=False;
renameAccounts=False;
deleteAccounts=False;
unlockAccounts=False;
manageSafe=False;
manageSafeMembers=False;
backupSafe=False;
viewAuditLog=False;
viewSafeMembers=False;
accessWithoutConfirmation=False;
createFolders=False;
deleteFolders=False;
moveAccountsAndFolders=False;
requestsAuthorizationLevel1=False;
requestsAuthorizationLevel2=False
}
08-18-2023 01:39 AM
$bodyAddSafeMembers = @{
MemberName="$($GroupsLine[2])"
SearchIn= "Vault"
MembershipExpirationDate= $null
Permissions=@{
UseAccounts= $ProfilesLine[1]
RetrieveAccounts= $ProfilesLine[2]
ListAccounts= $ProfilesLine[3]
AddAccounts= $ProfilesLine[4]
UpdateAccountContent= $ProfilesLine[5]
UpdateAccountProperties= $ProfilesLine[6]
InitiateCPMAccountManagementOperations= $ProfilesLine[7]
SpecifyNextAccountContent= $ProfilesLine[8]
RenameAccounts= $ProfilesLine[9]
DeleteAccounts= $ProfilesLine[10]
UnlockAccounts= $ProfilesLine[11]
ManageSafe= $ProfilesLine[12]
ManageSafeMembers= $ProfilesLine[13]
BackupSafe= $ProfilesLine[14]
ViewAuditLog= $ProfilesLine[15]
ViewSafeMembers= $ProfilesLine[16]
AccessWithoutConfirmation= $ProfilesLine[17]
CreateFolders= $ProfilesLine[18]
DeleteFolders= $ProfilesLine[19]
MoveAccountsAndFolders= $ProfilesLine[20]
RequestsAuthorizationLevel1= $ProfilesLine[21]
RequestsAuthorizationLevel2= $ProfilesLine[22]
}
MemberType= "Group"
}
$ProfilesLine is a variable I generated using a foreach loop. I have a $ProfilesFiles with all the profiles I want to create
Same with $GroupLine
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

