---
title: "Creates a claim alias for the company"
method: POST
path: "/companies/{identifier}/saml/claim-aliases"
tags: ["companies"]
---

# Creates a claim alias for the company

`POST /companies/{identifier}/saml/claim-aliases`

Creates a claim alias for the company. If a claim alias already exists, it will not be updated.
Requires the privilege [`COMPANY_SAMLCLAIM_ALIAS_WRITE`](https://www.gremlin.com/docs/user-management/access-control/#privileges)

## Path parameters

- `identifier` string, required

## Request body

- CreateOrUpdateClaimAliasRequest — Represents a request to create or update a SAML claims alias on behalf of a user
  - `aliasId` string — The unique identifier for the alias
  - `companyRoles` string[] — The list of company-level roles for the alias
  - `teamRoles` object — A mapping of team IDs to the team-level roles for the alias

## Response `default`

default response

- SamlAlias
  - `companyId` string
  - `aliasId` string
  - `companyRoles` string[]
  - `teamRoles` object
  - `createdAt` string, date-time
  - `updatedAt` string, date-time

## Other responses

- `401` — Authorization header missing or malformed. Please provide proper credentials in the authorization header.
- `403` — User requires privilege: COMPANY_SAMLCLAIM_ALIAS_WRITE

---

[API](https://skmtc.net/gremlin/apis/gremlin-api.md) · [All operations](https://skmtc.net/gremlin/apis/gremlin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gremlin/gremlin-api/revisions/3225dd997dbc/schema)
