Multiple Workflows

I have a workflow like this:
pimcore:
workflows:
school_one:
type: ‘state_machine’
supports:
- Pimcore\Model\Asset\Image
school_one:
type: ‘state_machine’
supports:
- Pimcore\Model\Asset\Image

and I have multiple roles like Creator, Publisher and … so on.
How I assign school_one to specific user and display the school_one workflow to that user. only

@azim2 You can do like this.
pimcore:
workflows:
school_one:
label: ‘School One’
type: ‘state_machine’
supports:
- Pimcore\Model\Asset\Image
places:
creator:
label: ‘Creator’
permissions:
- condition: “is_fully_authenticated() and ‘ROLE_PIMCORE_ADMIN’ in roles”

                    - condition: "is_fully_authenticated() and 'ROLE_YOUR_ROLE' in roles"  
               
            publisher:
                label: 'Publisher'
                permissions:
                    - condition: "is_fully_authenticated() and 'ROLE_PIMCORE_ADMIN' in roles"
                          
                    - condition: "is_fully_authenticated() and 'ROLE_YOUR_ROLE' in roles"  

https://pimcore.com/docs/pimcore/current/Development_Documentation/Workflow_Management/index.html#:~:text=Pimcore%20Workflow%20Management%20provides%20configuration,a%20few%20Pimcore%20specific%20features.

1 Like