查询一个用户信息

查询一个用户信息

API调用URL地址

http://<serverName>:<portNumber>/api/v3/users/<user_id>
其中<user_id>为被查询信息用户的id
示例:http://localhost:8080/api/v3/users/4

请求参数

HTTP方法:GET

参数名

位置

authtoken

<API Key>

header

 

响应示例

{

    "response_status": {

        "status_code"2000,

        "status""success"

    },

    "user": {

        "email_id""test2@test.com",

        "extension""sipnumber",

        "attachments": [],

        "org_roles": [

            {

                "name""Department Incharge",

                "id"12

            },

            {

                "name""Department Approver",

                "id"13

            },

            {

                "name""CEO",

                "id"3

            },

            {

                "name""CIO",

                "id"4

            },

            {

                "name""COO",

                "id"5

            },

            {

                "name""CFO",

                "id"6

            },

            {

                "name""General Manager",

                "id"7

            },

            {

                "name""Department Approver",

                "id"13

            },

            {

                "name""Regional Manager",

                "id"8

            },

            {

                "name""Regional Incharge",

                "id"9

            },

            {

                "name""Site Incharge",

                "id"10

            },

            {

                "name""Site Manager",

                "id"11

            },

            {

                "name""Department Head",

                "id"1

            },

            {

                "name""Reporting To",

                "id"2

            }

        ],

        "description""-",

        "is_vipuser"false,

        "reporting_to"null,

        "type""Technician",

        "cost_per_hour""0.00",

        "org_user_status""ACTIVE",

        "id""4",

        "department": {

            "site"null,

            "name""IT部门",

            "id""601"

        },

        "first_name"null,

        "profile_pic_url"null,

        "service_request_approver"null,

        "created_time": {

            "display_value""Jun 29, 2021 10:00 AM",

            "value""1624932029839"

        },

        "is_technician"true,

        "jobtitle""高级经理",

        "mobile""1234567890",

        "last_name"null,

        "sms_mail_id"null,

        "middle_name"null,

        "ciid""18",

        "secondary_emailids": [],

        "login_name""administrator",

        "phone""1234455",

        "sip_user""sipnumber",

        "employee_id""009",

        "domain"null,

        "name""IT经理-张斌",

        "user_udf_fields": {

            "udf_sline_1201""xxxtentation",

            "udf_sline_1202"null

        },

        "associated_roles": [

            {

                "name""ViewRequester",

                "id""94"

            },

            {

                "name""ViewRequestsNotInAnySite",

                "id""58"

            },

            {

                "name""Resources not in any site",

                "id""60"

            },

            {

                "name""DCAdmin",

                "id""130"

            },

            {

                "name""AERemoteControl",

                "id""73"

            },

            {

                "name""SDApprovePO",

                "id""72"

            },

            {

                "name""SDChangeManager",

                "id""85"

            },

            {

                "name""SDAdmin",

                "id""3"

            }

        ],

        "enable_telephony"true,

        "status""ACTIVE"

    }

}

 

Postman示例


      

    • Related Articles

    • 查询所有用户的信息

      API调用URL地址 http://<serverName>:<portNumber>/api/v3/users 其中<serverName>:<portNumber>替换为您的环境下SDP所在的主机IP和对应端口 示例:http://localhost:8080/api/v3/users 请求参数 方法:GET 参数名 值 位置 Input_data <JSON_String> URL路径 authtoken <API Key> header   <JSON_String>输入示例: ...
    • SDP SaaS API学习汇总

      DataCenter API Domain URL Accounts Server URL API Endpoint China https://servicedeskplus.cn https://accounts.zoho.com.cn https://servicedeskplus.cn/api/v3/requests 授权领牌/认证代码 - 认证服务器创建的临时领牌,用于客户端认证 访问领牌,执行API操作,时限1小时 刷新领牌,重新获取访问领牌 ...
    • apm/opm 添加监视器 or 设备等常规api

      以apm为例,有些特殊情形下,监视器无法添加,无法删除等,但苦于没有及时有效的sql语句去操作,可以参考以下链接,从而排错,其他操作可查阅具体手册。 https://www.manageengine.cn/products/applications_manager/help/addmonitor-api.html opm也有丰富的api可操作设备,告警,组等供参考。 ...
    • 用API添加ci项时multi-line类型字段如何带格式?

      CMDB中的字段single-line最多显示250个字符,multi-line最多显示4000个字符,如果不加格式会在一行内显示。 有时客户希望多行文本中的值带一定格式,便于查看,比如说如下方式: 在调用API时,需要使用转码器将字符由ACSI转成Unicode即可,如下述所示,换行转码后是&#10;
    • 【OPM】如何查找API密钥

      1,点击右上角齿轮图标 2,点击REST API密钥 复制即可。 注意:注意事项