You are here:
Send License Utilization Alerts to Users Assigned to a Permission Set
To send notifications to users assigned to a permission set, the provided License Utilization Notification template requires some changes.
Because the default flow is configured for profiles, you’ll update the flow to collect the permission set for a specific permission set name. Then you fetch all the permission set assignments, and transform those assignments into a collection of user IDs. Then, you modify the Get Users element to filter by that collection and return only the users who have the permission set. The rest of the flow for email delivery and the in-app notification remains unchanged.
- From the App Launcher, select Automations.
- From the Flows tab, click New, then enter License Utilization in Search to locate and select the License Utilization Notification template.
-
Select the Get Users element, and under Filter User Records, remove the Profile ID field to
disconnect the Get Users element from the Get System Administrator Profile element.
Delete the Get System Administrator Profile element.
-
Retrieve the appropriate permission set records.
-
Click Add Element
above the Get Users element to add the Get Records element.
- In the Label field, enter Permission Set Records.
- For Salesforce Object, find and enter Permission Set.
-
Under Filter Permission Set Records, indicate:
Field Permission Set Name Operator Equals Value Permission set name, for example, Data Cloud User
-
Click Add Element
-
Next, get the permission set assignments.
-
Click Add Element
under the Permission Set Records element, then select Get
Records.
- In the Label field, enter Permission Set Assignments.
- For Salesforce Object, find and enter Permission Set.
-
Under Filter Permission Set Records, indicate:
Field Permission Set ID Operator Equals Value {!Permission_Set_Records.Id}For How Many Records to Store, select All records.
-
Click Add Element
-
Next, collect the user IDs to make that information available to the Get Users
element.
-
Click Add Element
under the Permission Set Assignments element, then select
Transform.
- In the Label field, enter User ID Collection.
- For Source Data, add Permission Set Assignments.
- For Target Data, add Text.
- Click Allow multiple values (collection), then click Create.
- Map the User_ID_Collection under Target Data to the AssigneeId under Source Data.
-
Click Add Element
-
Now, indicate to get only the users who are assigned that permission set.
Click the Get Users element, and go to Filter User Records.
Field User ID Operator In Value User ID Collection
- Save the flow and give it a descriptive name.
- Activate the flow.

