Improve sfdx force:user:permset:assign to accept Permission Set Groups
Is your feature request related to a problem? Please describe. No
What are you trying to do
Assign permission set groups using sfdx force:user:permset:assign
Describe the solution you'd like
Improve sfdx force:user:permset:assign to accept permission set groups, or create a new command or flag
Describe alternatives you've considered I can pass a list of permission sets to the current command
Additional context N/A
This issue has been linked to a new work item: W-9517915
Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments.
Unfortunately the work item requires a salesforce employee login to view.
Can you let us know the status of this?
I'm working in a devbox designing a brand new implementation of our org. One of our best practices is for the 95% usage cases, assign permission groups to users, not permission sets. I'm trying to create a few hundred inactive users to test out our territory structure. Is there a way with the tool yet to do this? Or do I have to do something more tranditional like a workbench csv file load.
I would prefer to use the sfdx type solution, as my script could be reusable for scratch orgs and such in the future.
Obviously you'd want a brand new flag. As a permission set, and permission group may have the same name.
It appears you can pass a permission set group name to force:user:permset:assign and it just works. I just did so with sfdx-cli 7.146.1.
Maybe they have implemented it already. Good to know. Thanks for sharing
It appears you can pass a permission set group name to force:user:permset:assign and it just works. I just did so with sfdx-cli 7.146.1.
Hrmm.. I get an error if I specify a permission set group name.
I'm using sfdx-cli/7.166.1 darwin-x64 node-v16.17.0
$ sfdx force:user:permset:assign -u [email protected] -n PermSetGroupName
=== Failures
Username Error Message
──────────────── ─────────────────────────────────────────────────────────
[email protected] entity type cannot be inserted: Permission Set Assignment

Hey everyone, just chiming in here to say that this should be possible.
We just ran a quick test by creating a new permission set group and passing it into sfdx force:user:permset:assign -n <permsetGroup> and it worked just fine.
This was on version 7.179.0 of sfdx.
@AllanOricil if you can give us more info about what you're seeing maybe we can figure out if there's a bug or something else going on.
Hey everyone, just chiming in here to say that this should be possible.
We just ran a quick test by creating a new permission set group and passing it into
sfdx force:user:permset:assign -n <permsetGroup>and it worked just fine.This was on version
7.179.0ofsfdx.@AllanOricil if you can give us more info about what you're seeing maybe we can figure out if there's a bug or something else going on.
@RodEsp I actually did not test it again. But If you say it works, I belive in you 👍
Confirmed, the CLI supports assigning users to permission set groups and permission sets. I last tried several weeks ago and it wasn't working but seems to be working now. Thanks!
sfdx-cli/7.179.0 darwin-x64 node-v18.12.1