获取当前用户组织角色
GET
/openapi/v0.9/manage/api/v1/organizations/{org_uuid}/users/current
es-management-service
请求参数
Path 参数
org_uuid
string
必需
Header 参数
x-user-token
string
必需
默认值:
{{x-user-token}}
X-Request-Id
string
可选
默认值:
{% mock 'uuid' %}
Body 参数application/json
object {0}
示例
{}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/openapi/v0.9/manage/api/v1/organizations//users/current' \
--header 'x-user-token;' \
--header 'X-Request-Id: {% mock '\''uuid'\'' %}' \
--header 'Content-Type: application/json' \
--data-raw '{}'
返回响应
🟢200成功
application/json
Body
HTTP响应模板
code
integer
响应码
message
string
响应消息
data
object | null
响应数据
data
object
可选
account
string
可选
example: user@example.com
add_org_resource_type
string
添加组织资源类型
airport_breakdown_subscription_config
object
机场故障订阅配置
airport_breakdown_subscription_status
boolean
可选
example: true
airport_emergency_event_subscription_config
object
可选
airport_emergency_event_subscription_status
boolean
可选
example: true
auth_info
array [object {2}]
认证信息
device_report_feedback_subscription_config
object
可选
device_report_feedback_subscription_status
boolean
可选
example: true
geo_caging_config
object
欧盟C6认证信息
ipCountry
string
可选
example: CN
is_cloud_account_system_visitor
boolean
可选
example: false
is_default_organization_logo
boolean
可选
example: true
is_default_super_manager
boolean
可选
example: false
is_from_local_system
boolean
可选
example: false
is_origin_password
boolean
可选
example: true
nickname
string
可选
example: 张三
maxLength: 128
org_uuid
string
可选
example: 4dbc6ef2-0e3c-4d47-8b32-552a44f573c5
organization_logo_id
string
可选
example: logo123
organization_name
string
可选
example: DJI研发部
role
string
可选
example: member
enum: super_admin,admin,member
task_failure_subscription_config
object
任务失败订阅配置
task_failure_subscription_status
boolean
可选
example: true
units_config
object
组织单位设置
uom_notify_status
boolean
可选
example: false
uom_status
integer
可选
example: 0
user_id
string
可选
example: usr-xxxxx
示例
{
"code": 0,
"message": "string",
"data": {},
" data": {
"account": "string",
"add_org_resource_type": "string",
"airport_breakdown_subscription_config": {
"is_subscription_new_projects": true,
"subscription_projects": [
{
"project_name": "string",
"project_uuid": "string"
}
],
"subscription_receive_type": [
"string"
],
"subscription_status": true
},
"airport_breakdown_subscription_status": true,
"airport_emergency_event_subscription_config": {
"is_subscription_new_projects": true,
"subscription_projects": [
{
"project_name": "string",
"project_uuid": "string"
}
],
"subscription_receive_type": [
"string"
],
"subscription_status": true
},
"airport_emergency_event_subscription_status": true,
"auth_info": [
{
"auth_type": 0,
"type": "string"
}
],
"device_report_feedback_subscription_config": {
"subscription_receive_type": [
"string"
],
"subscription_status": true
},
"device_report_feedback_subscription_status": true,
"geo_caging_config": {
"geo_caging_state": 0
},
"ipCountry": "string",
"is_cloud_account_system_visitor": true,
"is_default_organization_logo": true,
"is_default_super_manager": true,
"is_from_local_system": true,
"is_origin_password": true,
"nickname": "string",
"org_uuid": "string",
"organization_logo_id": "string",
"organization_name": "string",
"role": "string",
"task_failure_subscription_config": {
"is_subscription_new_projects": true,
"subscription_projects": [
{
"project_name": "string",
"project_uuid": "string"
}
],
"subscription_receive_type": [
"string"
],
"subscription_status": true
},
"task_failure_subscription_status": true,
"units_config": {
"measure_units_system": "string",
"temperature_units_system": "string"
},
"uom_notify_status": true,
"uom_status": 0,
"user_id": "string"
}
}
修改于 2025-06-27 12:01:38