Skip to content

Instantly share code, notes, and snippets.

@toddboyd
Created June 15, 2021 21:17
Show Gist options
  • Save toddboyd/ce1109dfea45073b80b12fd767294bb4 to your computer and use it in GitHub Desktop.
Save toddboyd/ce1109dfea45073b80b12fd767294bb4 to your computer and use it in GitHub Desktop.
Assign Permission Set PowerShell Script
# Assign permission set
Write-Host -ForegroundColor green "Assigning permission set..."
& sfdx force:user:permset:assign --permsetname [permission set name] -u $orgName
if ($LASTEXITCODE -ne 0) {
exit 1
}
Write-Host ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment