適用於使用Enterprise+ 版方案的組織。
注意
無法透過 SCIM 指派超級管理員角色。若要指定超級管理員,請在完成超級管理員驗證後使用 Asana 系統管理主控台。SCIM 僅能指派系統管理員、成員和訪客角色。
連結您的 Asana 網域後,請前往「佈建」標籤頁。
展開「Mappings」(對應),然後在其下方點選「Provision Microsoft Entra ID Users」(佈建 Microsoft Entra ID 使用者)
捲動至「屬性對應」頁面底部,勾選「顯示進階選項」。這將顯示另外幾個選項。點選「編輯 Asana 的屬性清單」。
如果您無法使用此功能,請確認您已按照「開始之前」中的步驟,在完全啟用架構的情況下開啟 Microsoft Entra ID。
在「編輯屬性清單」頁面上,以「字串」類型新增一個名為rbacRoles的使用者屬性。儲存屬性清單。
返回「屬性對應」頁面,點選「新增對應」。
將Mapping type (對應類型) 設定為Expression (運算式)
將表達式設定為
Join(",",
IIF(Instr(Join("", AssertiveAppRoleAssignmentsComplex([appRoleAssignments])), "\"value\":\"admin\"", , )>"0", "1234567890", ""),
IIF(Instr(Join("", AssertiveAppRoleAssignmentsComplex([appRoleAssignments])), "\"value\":\"custom_role\"", , )>"0", "1234567890", ""),
IIF(Instr(Join("", AssertiveAppRoleAssignmentsComplex([appRoleAssignments])), "\"value\":\"member\"", , )>"0", "1234567890", "")
)在這個運算式中,您要設定角色名稱,並從 Asana 中擷取相應的自訂角色 ID 來取代一組數字。角色 ID 必須參數化——這些 ID (即數字) 是用於示範的預留位置,必須替換為您自己的 Asana 自訂 ID。
重要提醒:角色在運算式中的順序將決定角色指派的優先順序。位於最前面的角色將具有更高的優先順序。之後,如果使用者屬於多個角色群組,他們將獲得此處定義的優先順序最高的角色。
跳過「預設值」欄位
將Target attribute (目標屬性) 設定為我們剛剛建立的 rbacRoles
將「使用此屬性比對物件」設定為「否」
將「套用此對應」設定為「一律套用」
前往「管理角色」頁面,點選每個角色右側的下拉式選單,然後點選「複製自訂 ID」。針對您計劃使用 SCIM 指派的每個標準角色 (例如 Asana 成員、管理員或訪客),以及您建立的任何自訂角色,重複此流程。超級管理員角色僅能在 Asana 系統管理主控台中指派,而不能透過 SCIM 指派。
結果應該是這樣:
點選「OK (確定)」,然後點選「Save (儲存)」。
在左側導覽窗格中的「管理」下,前往「使用者和群組」。在此畫面上點選「應用程式註冊」。
我們將建立與您已設定的角色相符的應用程式角色。按一下「建立應用程式角色」。
注意
在此處建立的每個應用程式角色中設定的值,必須與上方設定的表達式中的名稱相符。該值不能包含空格。請使用底線取代空格。
成員
系統管理員
自訂角色:建立更多自訂應用程式角色,以便與您已設定的所有自訂角色���對應
點選套用以儲存應用程式角色。
新增您網域中的所有其他角色。
結果將呈現如下方式:
現在,請為每個 Asana 角色建立一個 Entra 群組
現在,我們將把角色指派給群組。前往「Enterprise 版應用程式」> Asana 應用程式> 「管理」> 「使用者和群組」:
點選「新增使用者/群組」,並將每個群組與其相應的角色建立關聯:
結果將以如下方式呈現:
現在,設定已完成,您可以將使用者新增至其相應的群組,以便指派角色。在下一個佈建週期執行時,此設定將為使用者指派相應的角色 (或者,您也可以依需求進行佈建),您將在 Asana 中看到這一變更。
注意
如果您是首次佈建使用者,並希望透過 Entra ID 群組同時指派授權和角色,請依序執行此操作:首先將使用者佈建到授權或角色群組之一,然後在使用者成功佈建後,您可以將另一個授權或角色群組指派給該使用者。否則,Entra 只會指派一個屬性,而不會將另一個屬性視為對使用者的「更新」。
注意
This article has been AI-translated.
Send translation feedback.

These cookies are strictly necessary to provide you with certain features. For example, these cookies allow you to access secure areas that require registration and set your privacy preferences. Because these cookies are essential to providing services to you, they cannot be disabled. You can set your browser to block or alert you about these cookies, but it may cause some parts of the site to not work.
Third party trackers collect information used for analytics and to personalize your experience with targeted ads. Under the Virginia Consumer Data Protection Act, you have the right to opt-out of the sale of your personal data to third parties. You also have the right to opt out of targeted advertising related processing. You may exercise your right to opt out of the sale of personal data and targeted advertising by using this toggle. If you opt out, we will not be able to offer you personalized ads and we will stop sharing your personal information with third parties. For more information please see our Privacy Statement.
These cookies allow us or our third-party analytics providers to collect information and statistics on use of our services by you and other visitors. This information helps us to improve our services and products for the benefit of you and others.
These cookies, provided by our third-party advertising partners, collect information about your browsing habits, as well as your preferences for various features and services. They also provide us with auditing, research, and reporting to know when advertising content has been displayed and how successful the content has been. This information allows us and our third-party advertising providers to display relevant advertising content.
These cookies provide enhanced functionality, providing chat support, allowing you to more easily complete forms, personalizing content to your preferences, and selecting your communications preferences. If you do not enable these cookies, or choose to disable them in the future, that could impact your ability to use certain features.