> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devinenterprise.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 列出企业安全 Profile

> 列出企业的安全 Profile，这些 Profile 供企业内所有组织共享。
各组织自有的 Profile 则通过相应组织的 API 路径列出。

分页返回企业的安全 Profile。这些 Profile 由企业内的所有组织共享；各组织自有的 Profile 可通过[列出组织安全 Profile](https://docs.devinenterprise.com/zh/api-reference/v3/security-profiles/list-organizations-security-profiles.md)获取。

如需了解各项限制的作用以及 Profile 的解析方式，请参阅[安全 Profile](https://docs.devinenterprise.com/zh/product-guides/security-profiles.md)。

## 权限

需要具有企业级 `ManageAccountSecureModeProfiles` 权限的[服务用户](https://docs.devinenterprise.com/zh/api-reference/v3/service-users/members-service-users.md)或[个人访问令牌](https://docs.devinenterprise.com/zh/api-reference/personal-access-tokens.md)。仅适用于企业账户。


## OpenAPI

````yaml zh/v3-openapi.yaml GET /v3beta1/enterprise/security-profiles
openapi: 3.1.0
info:
  description: 采用 Service User 身份验证和 RBAC 的 Devin v3 API
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3beta1/enterprise/security-profiles:
    get:
      tags:
        - security-profiles
      summary: 列出企业安全 Profile
      description: |-
        列出企业的安全 Profile，这些 Profile 供企业内所有组织共享。
        各组织自有的 Profile 则通过相应组织的 API 路径列出。
      operationId: handle_list_security_profiles_v3beta1_enterprise_security_profiles_get
      parameters:
        - in: query
          name: after
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: After
        - in: query
          name: first
          required: false
          schema:
            default: 100
            maximum: 200
            minimum: 1
            title: First
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PaginatedResponse_EnterpriseSecurityProfileResponse_
          description: 成功响应
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 未授权
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 禁止访问
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 未找到
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 冲突
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 已移除
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 无法处理的内容
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 请求过多
components:
  schemas:
    PaginatedResponse_EnterpriseSecurityProfileResponse_:
      properties:
        end_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: 用于获取下一页的游标；如果当前页是最后一页，则为 None。
          title: End Cursor
        has_next_page:
          default: false
          description: 当前页之后是否还有更多条目。
          title: Has Next Page
          type: boolean
        items:
          items:
            $ref: '#/components/schemas/EnterpriseSecurityProfileResponse'
          title: Items
          type: array
        total:
          anyOf:
            - type: integer
            - type: 'null'
          description: 可选的总数（可省略以提高性能）。
          title: Total
      required:
        - items
      title: PaginatedResponse[EnterpriseSecurityProfileResponse]
      type: object
    ProblemDetail:
      description: >-
        v3 API 的 RFC 9457 application/problem+json 错误响应体。


        detail 沿用自旧版 {"detail": ...} 响应体，以保持向后兼容；其他成员字段为新增字段。errors
        包含字段级验证失败信息（仅 422）。
      properties:
        detail:
          anyOf:
            - type: string
            - type: 'null'
          description: 针对此次具体情况的、便于人理解的说明。
          title: Detail
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          description: 因操作被阻止而拒绝请求时返回的机器可读代码（例如 "user_frozen"、"migrated_session"）。
          title: Error Code
        errors:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          description: 字段级验证错误（仅适用于 422 响应）。
          title: Errors
        instance:
          anyOf:
            - type: string
            - type: 'null'
          description: 此次出现对应的 URI 引用（请求路径）。
          title: Instance
        status:
          description: HTTP 状态码。
          title: Status
          type: integer
        title:
          description: 对问题类型的简短、便于理解的概述。
          title: Title
          type: string
        type:
          default: about:blank
          description: 用于标识问题类型的 URI 引用。
          title: Type
          type: string
      required:
        - title
        - status
      title: ProblemDetail
      type: object
    EnterpriseSecurityProfileResponse:
      additionalProperties: false
      description: |-
        归企业所有、与企业中所有组织
        共享的安全 Profile。所属企业由调用方的令牌确定。
      properties:
        created_at:
          title: Created At
          type: integer
        devin_mcp_read_only:
          description: 为 true 时，会话只能调用只读 Devin MCP 工具（不允许创建会话、管理自动化或执行其他写入操作）。
          title: Devin Mcp Read Only
          type: boolean
        enforcement_level:
          description: 推荐的 Profile 可被下级绑定覆盖；强制 Profile 规定了最低限制，下级策略只能在此基础上进一步收紧。
          enum:
            - recommended
            - mandatory
          title: Enforcement Level
          type: string
        git_access_level:
          enum:
            - read_only
            - read_write
          title: Git Access Level
          type: string
        mcp_config:
          anyOf:
            - $ref: '#/components/schemas/SecurityProfileMcpConfig'
            - type: 'null'
          description: null = 此 Profile 对 MCP 不作规定。
        name:
          title: Name
          type: string
        net_policy:
          anyOf:
            - $ref: '#/components/schemas/SecurityProfileNetPolicy'
            - type: 'null'
          description: null = 此 Profile 对网络不作规定（并不表示全部拒绝）。
        profile_id:
          description: 安全 Profile 的 ID。
          title: Profile Id
          type: string
        remove_github_cli_token:
          description: 为 true 时，会从会话所在的机器上移除 GitHub CLI 令牌，阻止直接访问 GitHub API。
          title: Remove Github Cli Token
          type: boolean
        slack_channel_access:
          anyOf:
            - $ref: '#/components/schemas/SecurityProfileSlackChannelAccess'
            - type: 'null'
          description: >-
            此 Profile 允许会话读取和发送消息的最大 Slack 频道范围。null = 此 Profile 不作规定，采用组织的
            Slack 设置。
        slack_dm_scope:
          anyOf:
            - enum:
                - disabled
                - org_members
                - workspace
              type: string
            - type: 'null'
          description: >-
            此 Profile 允许在 Slack 中向 Devin 发送私信的最大人员范围。null = 此 Profile 不作规定，采用组织的
            Slack 设置。对于企业账户，'workspace' 会收窄为 'org_members'。
          title: Slack Dm Scope
        teams_channel_access:
          anyOf:
            - $ref: '#/components/schemas/SecurityProfileTeamsChannelAccess'
            - type: 'null'
          description: >-
            此 Profile 允许会话读取和发送消息的最大 Microsoft Teams 频道范围。null = 此 Profile
            不作规定，采用组织的 Teams 默认访问权限设置。
        teams_dm_scope:
          anyOf:
            - enum:
                - disabled
                - installed_users
              type: string
            - type: 'null'
          description: >-
            此 Profile 允许 Devin 在 Microsoft Teams 中发送私信的最大收件人范围。null = 此 Profile
            不作规定，采用组织的 Teams 默认访问权限设置。
          title: Teams Dm Scope
        teams_group_chat_scope:
          anyOf:
            - enum:
                - disabled
                - origin_chat
              type: string
            - type: 'null'
          description: >-
            此 Profile 允许 Devin 读取的最大 Teams 群聊范围；`origin_chat` = 仅限发起该会话的群聊；null
            = 不作规定，与私信一样，由组织的 Teams 默认访问权限设置确定。
          title: Teams Group Chat Scope
        updated_at:
          title: Updated At
          type: integer
      required:
        - profile_id
        - name
        - git_access_level
        - enforcement_level
        - devin_mcp_read_only
        - remove_github_cli_token
        - created_at
        - updated_at
      title: EnterpriseSecurityProfileResponse
      type: object
    SecurityProfileMcpConfig:
      additionalProperties: false
      properties:
        servers:
          description: >-
            受此 Profile 管理的会话可使用的 MCP 服务器，以 slug 为键：可以是 MCP Marketplace 的
            slug（mcp-servers 资源的 slug 字段，例如 'github'、'notion'），也可以是安装实例的
            slug。当自定义安装实例与 MCP Marketplace 服务器的 slug 相同时，优先使用自定义安装实例。
          items:
            type: string
          title: Servers
          type: array
      required:
        - servers
      title: SecurityProfileMcpConfig
      type: object
    SecurityProfileNetPolicy:
      additionalProperties: false
      properties:
        allow:
          description: 允许访问的目标地址；未列出的地址均被阻止。主机名条目支持通配符（例如 *.github.com）。空列表也是有效策略，表示拒绝所有访问。
          items:
            anyOf:
              - $ref: '#/components/schemas/SecurityProfileHostnameDestination'
              - $ref: '#/components/schemas/SecurityProfileIpv4Destination'
              - $ref: '#/components/schemas/SecurityProfileIpv6Destination'
          title: Allow
          type: array
      required:
        - allow
      title: SecurityProfileNetPolicy
      type: object
    SecurityProfileSlackChannelAccess:
      additionalProperties: false
      properties:
        channels:
          description: mode 为 'specific' 时允许的频道；在其他模式下忽略此字段（并返回空列表）。
          items:
            $ref: '#/components/schemas/SecurityProfileSlackChannel'
          title: Channels
          type: array
        mode:
          description: >-
            none = 会话不得在任何频道中读取或发布消息；specific = 仅限列出的频道；all_public = Slack
            应用已加入的任何公开频道。
          enum:
            - none
            - specific
            - all_public
          title: Mode
          type: string
      required:
        - mode
      title: SecurityProfileSlackChannelAccess
      type: object
    SecurityProfileTeamsChannelAccess:
      additionalProperties: false
      properties:
        channels:
          description: 模式为 'specific' 时允许访问的频道；在其他模式下会被忽略（并返回空值）。
          items:
            $ref: '#/components/schemas/SecurityProfileTeamsChannel'
          title: Channels
          type: array
        mode:
          description: >-
            none = 会话不得在任何频道中读取或发布消息；specific = 仅限列出的频道；installed_teams = 已安装
            Devin 应用的团队中的任何频道。
          enum:
            - none
            - specific
            - installed_teams
          title: Mode
          type: string
      required:
        - mode
      title: SecurityProfileTeamsChannelAccess
      type: object
    SecurityProfileHostnameDestination:
      additionalProperties: false
      properties:
        hostname:
          title: Hostname
          type: string
      required:
        - hostname
      title: SecurityProfileHostnameDestination
      type: object
    SecurityProfileIpv4Destination:
      additionalProperties: false
      properties:
        ipv4:
          title: Ipv4
          type: string
      required:
        - ipv4
      title: SecurityProfileIpv4Destination
      type: object
    SecurityProfileIpv6Destination:
      additionalProperties: false
      properties:
        ipv6:
          title: Ipv6
          type: string
      required:
        - ipv6
      title: SecurityProfileIpv6Destination
      type: object
    SecurityProfileSlackChannel:
      additionalProperties: false
      properties:
        channel_id:
          description: Slack 频道 ID。
          minLength: 1
          title: Channel Id
          type: string
        team_id:
          description: Slack workspace（团队）ID。
          minLength: 1
          title: Team Id
          type: string
      required:
        - team_id
        - channel_id
      title: SecurityProfileSlackChannel
      type: object
    SecurityProfileTeamsChannel:
      additionalProperties: false
      properties:
        channel_id:
          description: Teams 频道 ID（'19:...@thread.tacv2'）。
          minLength: 1
          title: Channel Id
          type: string
        team_id:
          description: Microsoft Teams 团队的 Entra 组 ID。
          minLength: 1
          title: Team Id
          type: string
      required:
        - team_id
        - channel_id
      title: SecurityProfileTeamsChannel
      type: object
  securitySchemes:
    bearerAuth:
      description: 服务用户凭据（前缀：cog_）
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.