Support for `unifiedRoleAssignment` for different RBAC providers

Đang mở
#123 3 bình luận 13 reaction 1 người được giao Xem trên GitHub

@jason-dou đang làm issue này rồi.

Từ ngày 28/5/2024.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

new type

Vote for this new type by clicking the thumbs-up.

Is your feature request related to a problem? Please describe.
I'm trying to add a new resource unifiedRoleAssignment, but there are several issues.

  1. Resource is under more URIs
    The resource unifiedRoleAssignment represents a role assignment, but the type is returned by more RBAC providers.
    All these endpoints return unifiedRoleAssignment:
    /roleManagement/directory/roleAssignments
    /roleManagement/entitlementManagement/roleAssignments
    /roleManagement/exchange/roleAssignments - beta only

Now, it's possible to specify only one RootUri.

  - Name: microsoft.graph.unifiedRoleAssignment
    RootUri: /roleManagement/directory/roleAssignments
    AvailableProperty:
      - appScopeId
      - directoryScopeId
      - principalId
      - roleDefinitionId
    RequiredOnWrite:
      - appScopeId
      - directoryScopeId
      - principalId
      - roleDefinitionId
  1. Wrong path generated
    Generated path for
  - Name: microsoft.graph.unifiedRoleAssignment
    RootUri: /roleManagement/directory/roleAssignments
    AvailableProperty:
      - appScopeId
      - directoryScopeId
      - principalId
      - roleDefinitionId
    RequiredOnWrite:
      - appScopeId
      - directoryScopeId
      - principalId
      - roleDefinitionId

Generated path is /{rootScope}/providers/Microsoft.Graph/directory/{directoryId}/roleAssignments/{unifiedRoleAssignmentId} which seems to me wrong. It should be /{rootScope}/providers/Microsoft.Graph/roleManagement/directory/roleAssignments/{unifiedRoleAssignmentId}/

Describe the solution you'd like
Maybe add new property EntityType. Config.yml can contain the same EntityType but with different combination of Name and RootUri

  - Name: microsoft.graph.entraRoleAssignment
    EntityType: microsoft.graph.unifiedRoleAssignment
    RootUri: /roleManagement/directory/roleAssignments
  - Name: microsoft.graph.exchangeRoleAssignment
    EntityType: microsoft.graph.unifiedRoleAssignment
    RootUri: /roleManagement/exchange/roleAssignments

Additional context
Add any other context or screenshots about the feature request here.

Ngôn ngữ chính
TypeScript
Star
81
Fork
15
Merge trung bình
12 ngày 26 phút
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoftgraph/msgraph-bicep-types

Tất cả issue của microsoftgraph/msgraph-bicep-types

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.