在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"
]
}
}
}