Skip to content

Flow Name: On External User Creation: Assign Shopper Permission Set group

Last Updated: 2025-10-22 Source Code: On_External_User_Creation_Assign_Shopper_Permission_Set_group.flow-meta.xml

API Name: On_External_User_Creation_Assign_Shopper_Permission_Set_group Status: Active Type: Custom Trigger: Platform Event (User_Creation__e)

Business Purpose

Automates permission assignment during external user creation by processing platform events. Assigns permission set groups to new users and triggers downstream processes for buyer account enablement, ensuring proper access and commerce functionality.

Process Flow

  1. Receives User_Creation__e platform event from user creation processes
  2. Creates PermissionSetAssignment to assign permission set group to user
  3. Checks if AccountID is present in the event data
  4. If account exists, publishes User_Update__e platform event to trigger buyer enablement
  5. Downstream flows process User_Update__e to complete buyer account setup
📊 Click to view Process Flow Diagram
flowchart TD
    Start([Start: User_Creation__e Event]) --> Assign[Assign Permission Set Group]
    Assign --> Check{Account ID<br/>Exists?}
    Check -->|Yes| Publish[Publish User_Update__e Event]
    Check -->|No| End([End])
    Publish --> End

    style Start fill:#e1f5ff
    style Assign fill:#e1ffe1
    style Check fill:#fff4e1
    style Publish fill:#ffe1e1
    style End fill:#e1f5ff

Key Business Rules

  • Creates PermissionSetAssignment using AssigneeId and PermissionSetGroupId from platform event
  • Only publishes User_Update__e event if AccountID__c is present
  • Platform event-driven architecture enables decoupled user creation process
  • Uses event-driven approach for multi-step user onboarding automation

Dependencies

  • User_Creation__e platform event object
  • User_Update__e platform event object
  • PermissionSetAssignment object
  • PermissionSetGroup records
  • User records
  • Related Flow: "On External user PSG assignment enable user as Buyer"

Changes

PR-27923: Implemented external user creation automation with contact address point creation functionality and e-commerce user onboarding support.

Pre-Go-Live Concerns

CRITICAL - Fix Before Go-Live

  • None identified

HIGH - Address Soon After Go-Live

  • Monitor platform event delivery reliability and performance
  • Validate permission set assignments are completing successfully

MEDIUM - Future Enhancement

  • Consider adding error notification for failed permission assignments
  • Add logging for troubleshooting platform event processing

LOW - Monitor

  • Track platform event volume and processing times
  • Monitor downstream User_Update__e event processing

Maintenance Notes

Complexity: Low - Simple platform event processing with minimal logic Review Schedule: Annual review recommended Integration Points: Part of multi-flow user creation automation - coordinate changes with related flows Testing: Requires platform event testing tools and downstream flow validation