Partial of HostPolicyService, an internal authority helper in an admin/permission library. Returns the role labels for a Steam ID: "owner" for the owner, otherwise the groups the policy resolver says apply to that user.
namespace SboxSuperuser.Engine.Authority;
internal sealed partial class HostPolicyService
{
// Only called after the administration query has authorized a moderation reader.
internal string[] ReadRoleLabels( string steamId ) => IsOwner( steamId ) ? new[] { "owner" }
: _resolver.Policy.ApplicableGroups( steamId, _resolver.Claims ).ToArray();
}