Set showArchived to false to filter out archived jobRoles. Defaults to true
default
true
Struct: JobRoleSelectOpts
Key
Field
Type
Description
Requiredness
Default value
1
includeRestrictedUserModulars
bool
Returns restricted user ids instead of user modulars when false
default
2
allUsers
bool
Returns roles for all users instead of just current user's
Only valid for getAllAssignedRoles,
and is ignored if user is not a team admin
default
Struct: JobRoleRestriction
Key
Field
Type
Description
Requiredness
Default value
1
restricted
bool
When creating/updating a job role, if true, restrict to the user ids/emails specified by permitUserIds
When retrieving a job role, it is restricted to the users specified by permittedUsers or permitUserIds based on JobRoleSelectOpts, by default permitUserIds
Shows the templates and jobs that would be placed in an un-executable state on the
given permissions update. I.e. a job role is not longer able to execute a step
but there exist steps assigned to that job role.
Struct: AllRolesResult
Key
Field
Type
Description
Requiredness
Default value
1
userRoleIds
map<string, list<string>>
User id to role id list, all this user's assigned roles on the team