Dataverse Security Role 裡的 Organization 到底是什麼?
Copyright Notice: This article is an original work licensed under the CC 4.0 BY-NC-ND license.
If you wish to repost this article, please include the original source link and this copyright notice.
Source link: https://v2know.com/article/1360
在 Power Platform / Dataverse 的 Security Role 中,經常會看到這種設定:
Read Organization
Write Organization
Delete Organization
Append Organization
Append To Organization
第一次看到時,很容易誤以為:
Organization 是不是代表綁定到了某個具體的「組織」?
其實不是。
Organization 是權限範圍的最高層級
這裡的 Organization 指的是 Dataverse 的 Privilege Depth(權限作用範圍)。
也就是:
這項權限可以作用於整個 Dataverse Environment 中符合條件的資料。
它並不是讓你選擇某個具體 Organization,也不是把 Security Role 綁定到某家公司、部門或組織。
例如:
Read = Organization
表示:
使用者可以讀取整個 Environment 範圍內,該資料表的記錄,不受記錄 Owner 或 Business Unit 的範圍限制。
Dataverse 的權限層級有哪些?
常見的層級由小到大如下:
| 層級 | 舊稱 / 技術名稱 | 大致範圍 |
|---|---|---|
| None | None | 沒有權限 |
| User | Basic | 自己擁有或分享給自己的資料 |
| Business Unit | Local | 自己所在 Business Unit 的資料 |
| Parent: Child Business Units | Deep | 自己 BU + 下屬 BU |
| Organization | Global | 整個 Environment |
可以簡單記成:
None
↓
User
↓
Business Unit
↓
Parent + Child Business Units
↓
Organization
越往下,權限範圍越大。
舉個最簡單的例子
假設有一張:
案件
資料表。
Read = User
使用者通常只能讀:
自己擁有的案件
+
別人分享給自己的案件
Read = Business Unit
則可以讀:
自己所在 BU 內的案件
Read = Organization
則相當於:
整個 Dataverse Environment
↓
案件表中的記錄
↓
都不再因 BU / Owner 範圍而被限制
因此,Organization 可以理解成這項 Privilege 的最大資料作用範圍。
Organization 不是「指定某個 Organization」
錯誤理解:
Read
└─ Organization
├─ 東京本社
├─ 大阪支社
└─ 九州支社
不是這種機制。
實際概念是:
Read
└─ Privilege Depth
└─ Organization
= 全 Environment
如果真的要按部門、組織層級限制資料,Dataverse 主要使用的是:
Business Unit
Owner
Team
Security Role
Sharing
等機制,而不是在 Organization 這個權限層級裡選某個組織。
為什麼有時候又叫 Global?
如果查 Microsoft 舊文件、API 或一些技術文章,可能會看到:
Basic
Local
Deep
Global
它們大致對應:
| 技術名稱 | UI 中常見名稱 |
|---|---|
| Basic | User |
| Local | Business Unit |
| Deep | Parent: Child Business Units |
| Global | Organization |
所以:
Global ≈ Organization
兩者描述的是同一類「全組織/全 Environment 範圍」的權限深度。
實際看到這種設定代表什麼?
例如一張業務資料表設定為:
Create Organization
Read Organization
Write Organization
Delete Organization
Append Organization
Append To Organization
Assign None
Share None
可以大致理解成:
使用者可以在整個 Dataverse Environment 範圍內對這張表進行建立、讀取、修改、刪除及建立關聯等操作,但不能 Assign 記錄給其他 Owner,也不能使用 Share 功能把記錄分享給其他人。
因此,判斷 Organization 時只需要記住一句:
Organization 不是某個具體組織,而是 Dataverse Security Role 中最大的資料權限作用範圍。
This article was last edited at