Assign Permission Set using Screen Flow #inSalesforce

Assign Permission Set using Screen Flow #inSalesforce


Create a screen flow

Screen:

Lookup drag drop for user selection - name it Select User

Create record choice set for permission sets (after picklist drag drop) - name it Permission Set

permission set object, choice Label : Label and Data Type - Text, Choice Value Id

Labe equals PermissionSetLabel


Rename the next button to Assign Permission Set

Previous button to Assign Again


Get:

Permission Set Assignment

Criteria-

AssisgneeId equals User.RecordId

PermissionSetId equals Permission_Set


Decision: If User already has the Permission Set

Yes:

PermissionSet Assignment from Get Permission.. isnull false

Display - The Permission Set is already assigned to the User

No:

Create Record-

One, Use separate...

Object: Permission Set Assignment

AssigneeId equals User.RecordId

PermissionSetId equals PermissionSet

Screen after that: Permission Set successfully assigned










Comments