theforeman/foreman · error · GraphQL::ExecutionError
Unauthorized. You do not have the required permission %s.
Error message
Unauthorized. You do not have the required permission %s.
What it means
Error "Unauthorized. You do not have the required permission %s." thrown in theforeman/foreman.
Source
Thrown at app/graphql/mutations/settings/update.rb:54
User.as(context[:current_user]) do
errors = if record.save
[]
else
map_errors_to_path(record)
end
{
:setting => definition,
:errors => errors,
}
end
end
private
def authorize!
return if context[:current_user]&.can?(:edit_settings)
raise GraphQL::ExecutionError.new(
_('Unauthorized. You do not have the required permission %s.') % 'edit_settings'
)
end
end
end
end
View on GitHub (pinned to 6b05625475)
When it happens
Trigger: Thrown at app/graphql/mutations/settings/update.rb:54 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Authentication and authorization failures — expired tokens, bad credentials, and missing scopes.
AI-assisted analysis of theforeman/foreman@6b05625475 (2026-08-23).
Data as JSON: /api/errors/00e9a2d10e93dffd.
Report an issue: GitHub.