在Reactor API中,設定檔代表Adobe Experience Platform使用者。 Reactor API不會維護自己的使用者和許可權資料庫,而是仰賴由管理的AdobeID Adobe的身分管理系統(IMS).
設定檔包含有關登入使用者的所有資訊,包括所屬的所有組織、每個組織中所屬的產品設定檔,以及每個產品設定檔賦予的許可權。
本指南中使用的端點是 Reactor API. 在繼續之前,請檢閱 快速入門手冊 有關如何向API驗證的重要資訊。
您可以透過向以下網站發出GET請求,擷取目前登入的設定檔的詳細資料: /profile
端點。
API格式
GET /profile
要求
curl -X GET \
https://reactor.adobe.io/profile \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H "Content-Type: application/vnd.api+json" \
-H 'Accept: application/vnd.api+json;revision=1'
回應
成功的回應會傳回設定檔的詳細資料。
{
"data": {
"id": "UR0bd696624e844d6ba5bfc248ba1eca11",
"type": "users",
"attributes": {
"active_org": "{ORG_1}",
"expires_in": 0,
"display_name": "John Smith",
"job_function": null,
"email": "jsmith@example.com",
"organizations": {
"{ORG_1}": {
"name": "Example organization A",
"admin": true,
"active": true,
"login_companies": [
],
"product_contexts": [
"dma_audiencemanager_int",
"dma_tartan",
"dma_dtm",
"dma_reactor",
"dma_auditor"
],
"tenant_id": "{TENANT_ID_1}"
},
"{ORG_2}": {
"name": "Example organization B",
"admin": false,
"active": false,
"login_companies": [
],
"product_contexts": [
"dma_reactor",
"dma_auditor",
"dma_tartan"
],
"tenant_id": "{TENANT_ID_2}"
}
}
},
"links": {
"self": "https://reactor.adobe.io/profile"
},
"meta": {
"rights": [
"manage_companies"
]
}
}
}