Fianu Labs Users API

User-scoped administration endpoints, including a user's team memberships.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

GET /users/{user_sub} Fetch User by Subject ID #
GET /users/{user_sub}/teams List a User's Teams #
PUT /users/{user_sub}/tenants/{tenant_id} Update User Tenant Assignment #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/fianu-labs:fianu-labs-users-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

fianu-labs-users-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'Fianu Labs offers powerful APIs that simplify and automate governance processes.


    With our flexible and customizable APIs, you can easily create, manage, and monitor governance policies, access real-time data and analytics, and automate repetitive tasks.


    Let us help you streamline your governance processes and achieve your business objectives.'
  title: Fianu Users API
  contact:
    name: Fianu Labs
    url: https://fianu.io
    email: support@fianu.io
  version: 1.0.0
servers:
- url: https://app.fianu.io/api
security:
- BearerToken: []
tags:
- description: 'User-scoped administration endpoints, including a user''s team

    memberships.'
  name: Users
  x-displayName: Users
paths:
  /users/link:
    post:
      description: Links/creates a user account in the system. Takes user information and creates or updates the user record, synchronizing with external authentication providers.
      tags:
      - Users
      summary: Link User Account
      operationId: link_user
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/userIn'
        description: User information to link/create
        required: true
      responses:
        '200':
          description: User linked successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    description: Success message with user ID
                    type: string
        '400':
          description: Client Error - Invalid user data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errorV010'
  /users/{id}:
    delete:
      description: Removes/unlinks a user account from the system by user ID. This disconnects the user from the organization but does not delete the user from external authentication providers.
      tags:
      - Users
      summary: Unlink User Account
      operationId: unlink_user
      parameters:
      - description: User ID to unlink
        name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: User unlinked successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    description: Success message confirming user was unlinked
                    type: string
        '400':
          description: Client Error - Invalid user ID or unlink failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errorV010'
        '404':
          description: User Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errorV010'
  /users/{user_sub}:
    get:
      description: Retrieves user information by subject ID from the authentication provider. Returns complete user profile including roles, metadata, and tenant information.
      tags:
      - Users
      summary: Fetch User by Subject ID
      operationId: fetch_user
      parameters:
      - description: User subject ID from authentication provider
        name: user_sub
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/userV010'
        '400':
          description: Client Error - Invalid subject ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errorV010'
        '404':
          description: User Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errorV010'
  /users/{user_sub}/teams:
    get:
      description: Returns the teams the user is directly associated with, each tagged with the role(s) the user holds on it ("owner", "member", or both). Sourced from the team owners/members properties — the user-side inverse of the team members listing. Direct association only; transitive team hierarchy is not walked. Unknown users return an empty array.
      tags:
      - Users
      summary: List a User's Teams
      operationId: list_user_teams
      parameters:
      - description: User subject ID from authentication provider
        name: user_sub
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The user's teams with roles
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/teamRefRow'
        '400':
          description: Client Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errorV010'
  /users/{user_sub}/tenants/{tenant_id}:
    put:
      description: Updates the tenant assignment for a user. This changes which organization/tenant the user is associated with in the system.
      tags:
      - Users
      summary: Update User Tenant Assignment
      operationId: update_user_tenant
      parameters:
      - description: User subject ID from authentication provider
        name: user_sub
        in: path
        required: true
        schema:
          type: string
      - description: Tenant/organization ID to assign the user to
        name: tenant_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: User tenant updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    description: Success message confirming tenant assignment
                    type: string
        '400':
          description: Client Error - Invalid user or tenant ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errorV010'
        '404':
          description: User or Tenant Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errorV010'
components:
  schemas:
    teamMemberRow:
      description: 'Roles holds the relationship(s) the principal has to the team ("owner",

        "member"; owner first) for the public listing (SelectTeamMembers, sourced

        from the team''s owners/members properties). The low-level edge reader

        (SelectMembershipEdges) leaves Roles empty — its Read sets Lax so the

        absent column is tolerated.


        The "joined at" timestamp lives in the audit log (asset_edges has no

        created_at column today); callers that need a timeline join through

        audit_log entries for the corresponding edge.'
      type: object
      title: 'TeamMemberRow is one principal associated with a team — a direct member,

        an owner, or both — joined to the principal''s asset row so the caller sees

        type/name/identifier without a second round-trip.'
      properties:
        avatarUrl:
          $ref: '#/components/schemas/NullString'
        firstName:
          $ref: '#/components/schemas/NullString'
        identifier:
          $ref: '#/components/schemas/NullString'
        lastName:
          $ref: '#/components/schemas/NullString'
        name:
          $ref: '#/components/schemas/NullString'
        roles:
          type: array
          items:
            type: string
          x-go-name: Roles
        type:
          $ref: '#/components/schemas/NullString'
        uuid:
          $ref: '#/components/schemas/NullString'
      x-go-name: TeamMemberRow
      x-go-package: github.com/fianulabs/core/v2/external/db/teams
    userV010:
      type: object
      properties:
        avatarUrl:
          description: 'avatarUrl — the user''s avatar (Auth0 picture, persisted under

            metadata.picture at login). Nil until the user signs in post-deploy.'
          type: string
          x-go-name: AvatarURL
        email:
          description: email
          type: string
          x-go-name: Email
        firstName:
          description: firstName
          type: string
          x-go-name: FirstName
        id:
          description: id
          type: string
          x-go-name: ID
        lastName:
          description: lastName
          type: string
          x-go-name: LastName
        metadata:
          description: metadata
          type: object
          additionalProperties: {}
          x-go-name: Metadata
        roles:
          description: roles
          type: array
          items:
            type: string
          x-go-name: Roles
        tenant:
          description: tenant
          type: string
          x-go-name: Tenant
        username:
          description: userName
          type: string
          x-go-name: Username
        uuid:
          description: 'uuid — canonical assets_user.uuid for cross-referencing user rows

            (FGA edges, asset_edges.source_asset, etc.). The `id` field above is

            the auth provider''s sub identifier, not the row UUID.'
          type: string
          x-go-name: UUID
      x-go-name: User
      x-go-package: github.com/fianulabs/core/v2/external/db/types/fianu/users/v0.0.1
    teamRefRow:
      description: 'Roles holds the relationship(s) the user has to the team ("owner",

        "member"; owner first), sourced from the team asset''s owners/members

        properties — the same source as the team `/members` listing, read in

        reverse (see SelectUserTeams).'
      type: object
      title: 'TeamRefRow is a compact projection of a team a user belongs to, tagged

        with the role(s) the user holds on it.'
      properties:
        created_at:
          $ref: '#/components/schemas/NullTime'
        description:
          $ref: '#/components/schemas/NullString'
        identifier:
          $ref: '#/components/schemas/NullString'
        last_modified:
          $ref: '#/components/schemas/NullTime'
        members:
          description: 'Members is the team''s full membership expanded inline — every owner and

            member with their user display fields and role(s) — so the caller renders

            a team and its people without a second /members call. Same shape and source

            as the team `/members` listing (SelectTeamMembers); a member whose Roles

            contain "owner" is an owner. Empty array (never null) for a team with none.'
          type: array
          items:
            $ref: '#/components/schemas/teamMemberRow'
          x-go-name: Members
        name:
          $ref: '#/components/schemas/NullString'
        roles:
          type: array
          items:
            type: string
          x-go-name: Roles
        uuid:
          $ref: '#/components/schemas/NullString'
      x-go-name: TeamRefRow
      x-go-package: github.com/fianulabs/core/v2/external/db/teams
    NullString:
      type: object
      description: (recursive reference to NullString)
    userIn:
      type: object
      properties:
        email:
          description: email
          type: string
          x-go-name: Email
        firstName:
          description: firstName
          type: string
          x-go-name: FirstName
        id:
          description: id
          type: string
          x-go-name: Sub
        lastName:
          description: lastName
          type: string
          x-go-name: LastName
        metadata:
          description: metadata
          type: object
          additionalProperties: {}
          x-go-name: Metadata
        roles:
          description: roles
          type: array
          items:
            type: string
          x-go-name: Roles
        tenant:
          description: tenant
          type: string
          x-go-name: Tenant
        username:
          description: userName
          type: string
          x-go-name: Username
      x-go-name: UserIn
      x-go-package: github.com/fianulabs/core/v2/external/db/types/fianu/users/v0.0.1
    NullTime:
      type: object
      description: (recursive reference to NullTime)
    errorV010:
      type: object
      properties:
        code:
          description: code
          type: string
          x-go-name: Code
        dataTypeName:
          description: dataTypeName
          type: string
          x-go-name: DataTypeName
        detail:
          description: detail
          type: string
          x-go-name: Detail
        eventing:
          description: eventing
          type: boolean
          x-go-name: Eventing
        file:
          description: file
          type: string
          x-go-name: File
        hint:
          description: hint
          type: string
          x-go-name: Hint
        message:
          description: message
          type: string
          x-go-name: Message
        service:
          description: service
          type: string
          x-go-name: Service
        severity:
          description: severity
          type: string
          x-go-name: Severity
        source:
          description: source
          type: string
          x-go-name: Source
        type:
          description: type
          type: string
          x-go-name: Type
        uuid:
          description: uuid
          type: string
          x-go-name: Uuid
      x-go-name: Error
      x-go-package: github.com/fianulabs/core/v2/external/db/types/fianu/api/error/v0.0.1
  securitySchemes:
    BearerToken:
      description: JWT Bearer Token Auth
      type: apiKey
      name: Authentication
      in: header
externalDocs:
  description: Fianu Labs Documentation
  url: https://docs.fianu.io
x-tagGroups:
- name: Authentication
  tags:
  - access_tokens
- name: Console
  tags:
  - collections
  - controls
  - domains
  - policies
  - environments
  - targets
  - gates
  - indexes
- description: 'Every event that occurs throughout the software development lifecycle produces evidence. A Note represents a single piece of evidence. There are four types of Notes: Origin, Occurrence, Transaction, and Attestation. Each type varies in its traits and utility, but all Notes are digitally signed and stored in an immutable ledger where they can be queried on demand. If a query returns a Note that does not match its signature, it is considered untrusted and its evidence invalid. The following routes allow you to retrieve/display evidence Notes.'
  name: Evidence
  tags:
  - evaluation
  - ledger
  - signatures
  - evidence
  - deployments
  - notes
  - events
  - metrics
- name: Gating
  tags:
  - gating_check
  - gating_enforce
- description: Integrations represent third-party tools and platforms that generate evidence for attestations. Integrations are designed to manage the third-party’s toolchain relationship with Fianu.
  name: Integrations
  tags:
  - platforms
  - plugins
  - instances
  - platform_types
  - tools
- name: Assets
  tags:
  - assets
  - accounts
  - modules
  - abstract_assets
- name: Inventory
  tags:
  - statistics
  - sources
- description: Notification catalog, effective configuration, delivery channel integrations, and the user inbox.
  name: Notifications
  tags:
  - notifications
- description: Team management, approval workflows, and account-level administration.
  name: Administration
  tags:
  - team
  - teams
  - users
  - tickets
- name: Server
  tags:
  - settings