---
descriptions:
  resource:
    self: >-
      The Resource object represents an entity in your application that can have
      permissions assigned.
    object: Distinguishes the Resource object.
    id: Unique identifier of the Resource.
    external_id: An identifier you provide to reference the resource in your system.
    name: A human-readable name for the Resource.
    description: An optional description for the Resource.
    resource_type_slug: The slug of the resource type this resource belongs to.
    parent_resource_id: 'The ID of the parent resource in the hierarchy, if any.'
    organization_id: The ID of the organization this resource belongs to.
    created_at: The timestamp when the Resource was created.
    updated_at: The timestamp when the Resource was last updated.
reference:
  curl:
    - url: /reference/fga/resource
      key: resource
      id: resource
      title: Resource
      properties:
        - key: object
          type: '"authorization_resource"'
          description: (resource.object)
        - key: id
          type: string
          description: (resource.id)
        - key: external_id
          type: string
          description: (resource.external_id)
        - key: name
          type: string
          description: (resource.name)
        - key: description
          type: string | null
          description: (resource.description)
        - key: resource_type_slug
          type: string
          description: (resource.resource_type_slug)
        - key: parent_resource_id
          type: string | null
          description: (resource.parent_resource_id)
        - key: organization_id
          type: string
          description: (resource.organization_id)
        - key: created_at
          type: string
          description: (resource.created_at)
        - key: updated_at
          type: string
          description: (resource.updated_at)
  js:
    - url: /reference/fga/resource
      key: AuthorizationResource
      id: resource
      title: AuthorizationResource
      properties:
        - key: object
          type: '"authorization_resource"'
          description: (resource.object)
        - key: id
          type: string
          description: (resource.id)
        - key: externalId
          type: string
          description: (resource.external_id)
        - key: name
          type: string
          description: (resource.name)
        - key: description
          type: string | null
          description: (resource.description)
        - key: resourceTypeSlug
          type: string
          description: (resource.resource_type_slug)
        - key: parentResourceId
          type: string | null
          description: (resource.parent_resource_id)
        - key: organizationId
          type: string
          description: (resource.organization_id)
        - key: createdAt
          type: string
          description: (resource.created_at)
        - key: updatedAt
          type: string
          description: (resource.updated_at)
originalPath: .tmp-workos-clone/packages/docs/content/reference/fga/resource/index.mdx
---

# Resource

A resource is an instance of a [resource type](/fga/resource-types) that represents an entity in your application. Resources can be workspaces, projects, apps, or any other object that users can access.

Resources are organized in a hierarchy. When a role is assigned to a user on a parent resource, they automatically gain access to child resources through permission inheritance.

<CodeBlock title="Resource" file="resource" referenceId="resource" />
