# Aritma IAM API

An API for interacting with the identity and access management system of Aritma.
**Authorization**: each endpoint lists the IAM actions the calling subject must be granted in the tenant (also exposed as `x-required-actions`), and the scope they are enforced on: the root scope `/`, or the scope given in the request. A grant on a scope also applies to everything below it, and a grant on a parent action also grants its child actions. When several actions are listed, all are required. Use `GET /v1/me/permissions` to see the permissions granted to you.

Version: 1

## Servers

IAM API
```
https://api.aritma.io/core/iam
```

## Security

### authorization_code_with_pkce

Type: oauth2
Authorization URL: https://id.aritma.io/connect/authorize
Token URL: https://id.aritma.io/connect/token
Scopes:
- `services.iam`: Access to Aritma Identity and Access Management API

### client_credentials

Type: oauth2
Token URL: https://id.aritma.io/connect/token
Scopes:
- `services.iam`: Access to Aritma Identity and Access Management API

## Download OpenAPI description

 - [Aritma IAM API](https://developer.aritma.com/_bundle/apis/platform/iam/openapi/iam-openapi.yaml)

## Actions

 - [GET /v1/actions](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/actions/listfullactions.md)
## Client

 - [GET /v1/clients](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/client/getclients.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.read`
 - [POST /v1/clients](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/client/createclient.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.manage`
 - [GET /v1/clients/{clientId}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/client/getclientbyclientid.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.read`
 - [PUT /v1/clients/{clientId}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/client/updateclient.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.manage`
 - [DELETE /v1/clients/{clientId}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/client/deleteclient.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.manage`
 - [GET /v1/clients/{clientId}/secrets](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/client/getclientsecrets.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.manage`
 - [POST /v1/clients/{clientId}/secrets](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/client/createclientsecret.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.manage`
 - [DELETE /v1/clients/{clientId}/secrets/{clientSecretId}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/client/deleteclientsecret.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.manage`
## Domains

 - [GET /v1/domains](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/domains/getdomains.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
 - [POST /v1/domains](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/domains/registerdomain.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
 - [DELETE /v1/domains](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/domains/unregisterdomain.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
 - [GET /v1/domains/status](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/domains/getdomain.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
## Invitation

 - [POST /v1/invitations](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/invitation/createinvitation.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.manage`
 - [GET /v1/invitations](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/invitation/getinvitations.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.manage`
 - [GET /v1/invitations/{id}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/invitation/getinvitation.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.manage`
 - [DELETE /v1/invitations/{id}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/invitation/cancelinvitation.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.manage`, `iam.policy.write`
 - [POST /v1/invitations/{id}/resend](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/invitation/resendinvitation.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.manage`
## Me

 - [GET /v1/me](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/me/getself.md): **Allowed subject types**: User only. Requests from other subject types are rejected with 400 Bad Request.
 - [GET /v1/me/claims](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/me/getuserclaims.md): **Allowed subject types**: User only. Requests from other subject types are rejected with 400 Bad Request.
 - [GET /v1/me/permissions](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/me/getownpermissions.md)
 - [GET /v1/me/roles](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/me/getuserroles.md): **Allowed subject types**: User only. Requests from other subject types are rejected with 400 Bad Request.
## Policies

 - [POST /v1/policies](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/policies/createpolicy.md): **Required IAM actions** (all required, on the scope given in the request): `iam.policy.write`
 - [DELETE /v1/policies](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/policies/removepolicy.md): **Required IAM actions** (all required, on the scope given in the request): `iam.policy.write`
 - [GET /v1/policies](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/policies/findpolicies.md): Requires the requesting party to have read access on the requested scope **Required IAM actions** (all required, on the scope given in the request, or `/` if none is given): `iam.policy.read`
 - [POST /v1/policies/batch](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/policies/createpolicies.md): **Required IAM actions** (all required, on the scope given in the request): `iam.policy.write`
## Role

 - [GET /v1/role](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/role/getroles.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.read`
## Scim

 - [POST /v1/scim](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/scim/createscimtoken.md): The SCIM token secret will only be showed in the response of this endpoint, it will never be shown again, so be sure to copy it.
 - [GET /v1/scim](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/scim/listscimtokens.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
 - [DELETE /v1/scim/{id}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/scim/deletescimtoken.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
## Scope

 - [GET /v1/scopes](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/scope/getscopes.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.read`
## SSO

 - [GET /v1/sso](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/sso/listidentityproviders.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
## SSO - Azure AD (Entra ID)

 - [POST /v1/sso/azuread](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/sso-azure-ad-(entra-id)/azurecreateidentityprovider.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
 - [GET /v1/sso/azuread/{id}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/sso-azure-ad-(entra-id)/azuregetidentityprovider.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
 - [PUT /v1/sso/azuread/{id}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/sso-azure-ad-(entra-id)/azureupdateidentityprovider.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
 - [DELETE /v1/sso/azuread/{id}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/sso-azure-ad-(entra-id)/azuredeleteidentityprovider.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
## SSO - Custom Providers

 - [POST /v1/sso/custom](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/sso-custom-providers/createidentityprovider.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
 - [DELETE /v1/sso/custom/{id}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/sso-custom-providers/deleteidentityprovider.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
 - [GET /v1/sso/custom/{id}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/sso-custom-providers/customgetidentityprovider.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
 - [PUT /v1/sso/custom/{id}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/sso-custom-providers/customupdateidentityprovider.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
 - [PUT /v1/sso/custom/{id}/icon](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/sso-custom-providers/updateprovidericon.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
 - [DELETE /v1/sso/custom/{id}/icon](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/sso-custom-providers/deleteprovidericon.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
## SSO - Google

 - [POST /v1/sso/google](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/sso-google/googlecreateidentityprovider.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
 - [GET /v1/sso/google/{id}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/sso-google/googlegetidentityprovider.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
 - [PUT /v1/sso/google/{id}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/sso-google/googleupdateidentityprovider.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
 - [DELETE /v1/sso/google/{id}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/sso-google/googledeleteidentityprovider.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
## SSO - Signicat

 - [POST /v1/sso/signicat](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/sso-signicat/signicatcreateidentityprovider.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
 - [GET /v1/sso/signicat/{id}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/sso-signicat/signicatgetidentityprovider.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
 - [PUT /v1/sso/signicat/{id}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/sso-signicat/signicatupdateidentityprovider.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
 - [DELETE /v1/sso/signicat/{id}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/sso-signicat/signicatdeleteidentityprovider.md): **Required IAM actions** (all required, on scope `/`): `tenant.admin`
## Subjects

 - [GET /v1/subjects](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/subjects/getsubjects.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.read`
 - [GET /v1/subjects/{subject}/memberships](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/subjects/getsubjectmemberships.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.read`
 - [GET /v1/subjects/{subject}/permissions](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/subjects/getsubjectpermissions.md): The requesting party must have read access for a given scope to return it **Required IAM actions** (all required, on scope `/`): `tenant.subjects.read`
 - [GET /v1/subjects/clients](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/subjects/getclientsubjects.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.read`
 - [GET /v1/subjects/clients/{clientId}/permissions](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/subjects/getclientpermissions.md): The requesting party must have read access for a given scope to return it **Required IAM actions** (all required, on scope `/`): `tenant.subjects.read`
 - [GET /v1/subjects/groups](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/subjects/getsubjectgroups.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.read`
 - [POST /v1/subjects/groups](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/subjects/createsubjectgroup.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.manage`
 - [DELETE /v1/subjects/groups/{groupId}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/subjects/deletesubjectgroup.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.manage`
 - [GET /v1/subjects/groups/{groupId}/permissions](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/subjects/getgrouppermissions.md): The requesting party must have read access for a given scope to return it **Required IAM actions** (all required, on scope `/`): `tenant.subjects.read`
 - [GET /v1/subjects/groups/{groupSubjectId}/members](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/subjects/getgroupsubjects.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.read`
 - [POST /v1/subjects/groups/{groupSubjectId}/members](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/subjects/addsubjectstosubjectgroup.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.manage`
 - [DELETE /v1/subjects/groups/{groupSubjectId}/members](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/subjects/removesubjectfromsubjectgroup.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.manage`
 - [GET /v1/subjects/users](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/subjects/getusersubjects.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.read`
 - [GET /v1/subjects/users/{userId}/permissions](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/subjects/getuserpermissions.md): The requesting party must have read access for a given scope to return it **Required IAM actions** (all required, on scope `/`): `tenant.subjects.read`
## User

 - [GET /v1/users](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/user/getusers.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.read`
 - [GET /v1/users/{userId}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/user/getuser.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.read`
 - [POST /v1/users/{userId}/role/{roleId}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/user/assignroletouser.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.manage`
 - [DELETE /v1/users/{userId}/role/{roleId}](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/user/removerolefromuser.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.manage`
 - [POST /v1/users/users](https://developer.aritma.com/apis/platform/iam/openapi/iam-openapi/user/createusersubject.md): **Required IAM actions** (all required, on scope `/`): `tenant.subjects.manage`
