The input.user object is present in most packages. This object provides information about the user performing the action. This can be used to restrict actions by role.

The following function can be used in your policies to determine if a user has a particular role assigned to it:

input.user.isAdminbooleanIs the user who started this pipeline an admin user
input.user.usernamestringWhat is the user ID of the user that started this pipeline.
input.user.role[]stringThe names of the roles assigned to the user. This only shows up if FIAT is configured to provide roles.

Last modified August 18, 2023: (02b163b7)