# mutate_role_resolver

Name mutate_role_resolver
Type callback
Version 1.0
Since 2020-01-01

# Prologue

Add user(s) to role or set (override) user(s) in role using processing variables.

# Configuration

events:

	# Event's name
	on_step_start:

		# Callback's name
		mutate_role_resolver:
			config:

				# Required
				role: role_name

				# Required
				# Accepts scalar variable with user ID integer
				# Accepts json variable with array of user ID integers
				variable: "_process.roles['@creator'][0].id"

				# Optional
				# Default - override
				# Modes:
				#	override - replaces any existing users with given role with new ones
				#	add - add new users to role without overriding already assigned users
				mode: override
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23