# Function mapAuthorAssociation

- mapAuthorAssociation(
  association: string,
  ):
  | "unknown"
  | "owner"
  | "maintainer"
  | "collaborator"
  | "contributor"
  | "member"

  Maps GitHub API author_association values to our GitHubUserRole enum. See: https://docs.github.com/en/graphql/reference/enums#commentauthorassociation

  #### Parameters

  - association: string

  #### Returns "unknown" | "owner" | "maintainer" | "collaborator" | "contributor" | "member"

  - Defined in packages/nexus-agents/src/security/trust-classifier.ts:24