/** * Permit.io API * Authorization as a service * * The version of the OpenAPI document: 2.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { UserInTenant } from './user-in-tenant'; import { UserRole } from './user-role'; /** * * @export * @interface UserRead */ export interface UserRead { /** * A unique id by which Permit will identify the user for permission checks. * @type {string} * @memberof UserRead */ key: string; /** * Unique id of the user * @type {string} * @memberof UserRead */ id: string; /** * Unique id of the organization that the user belongs to. * @type {string} * @memberof UserRead */ organization_id: string; /** * Unique id of the project that the user belongs to. * @type {string} * @memberof UserRead */ project_id: string; /** * Unique id of the environment that the user belongs to. * @type {string} * @memberof UserRead */ environment_id: string; /** * * @type {Array} * @memberof UserRead */ associated_tenants?: Array; /** * * @type {Array} * @memberof UserRead * @deprecated */ roles?: Array; /** * The email of the user. If synced, will be unique inside the environment. * @type {string} * @memberof UserRead */ email?: string; /** * First name of the user. * @type {string} * @memberof UserRead */ first_name?: string; /** * Last name of the user. * @type {string} * @memberof UserRead */ last_name?: string; /** * Arbitrary user attributes that will be used to enforce attribute-based access control policies. * @type {object} * @memberof UserRead */ attributes?: object; }