PMP 集成 SDP 实现细粒度条件工单过滤
需求背景:
通过细粒度化的工单属性信息进行条件条件匹配,以达到满足SDP工单属性条件的工单ID可以进行资源的访问,从而解放PMP系统上的资源访问控制审批过程,通过工单ID来进行资源访问权限判断。
工单属性条件可以是系统缺省字段诸如状态,分类,工单模板等信息,也可以是附加字段来作为匹配条件。另外属性值条件添加不限制值为中文或是英文,只要和sdp系统匹配即可。
优势:解放PMP审批过程,通过更加明确的属性匹配来进行自动判断以准入资源。
劣势:由于是采用条件设置自动判断,即使添加再多条件往往也存在难以确保唯一性问题。
如不同的几张工单号都能够满足到设置的特定条件。则任一工单id都可以作为准入资源的凭证,这个难以避免。只能尽可能在诸如状态,请求模板等多条件上限制某张单号重复作为准入的ID的情况(比如状态条件是必须的,限制工单的生命周期)。
实现方法:
1 首先配置PMP和SDP的集成。(注意做集成一定要使用sdp pmp相同名称管理员账号)
2 然后在管理工单系统,Servicedesk Plus集成处点击测试设置。
3 输入一张属性字段值能够满足预期所有设置条件的工单ID,然后点击测试按钮,测试通过后,点击获取自定义字段按钮。这将会将PMP系统中用到的SDP过滤条件字段添加到高级过滤器选项的筛选条件中。
解析信息供参考:
{
"request": {
"ola_due_by_time": null,
"subject": "测试2",
"resolution": {
"resolution_attachments": [
],
"content": null
},
"linked_to_request": null,
"onhold_time": null,
"mode": {
"name": "Chat",
"id": "4"
},
"is_read": false,
"lifecycle": null,
"reason_for_cancel": null,
"assets": [
],
"is_trashed": false,
"fr_sla_violated_group": null,
"id": "2",
"assigned_time": null,
"group": null,
"requester": {
"email_id": null,
"phone": "925-852-2602",
"name": "Heather Graham",
"mobile": "",
"profile_pic": {
"content-url": "\/images\/default-profile-pic2.svg"
},
"is_vipuser": false,
"id": "7",
"department": null
},
"cancel_requested_by": null,
"email_to": [
],
"sla_violated_technician": null,
"created_time": {
"display_value": "03\/04\/2024 05:28 PM",
"value": "1712136502494"
},
"item": null,
"has_resolution_attachments": false,
"level": {
"name": "Tier 1",
"id": "1"
},
"approval_status": null,
"impact": null,
"service_category": null,
"sla": {
"name": "High SLA",
"id": "4"
},
"priority": {
"color": "#ff0000",
"name": "High",
"id": "4"
},
"created_by": {
"email_id": null,
"phone": null,
"name": "admin",
"mobile": null,
"profile_pic": {
"content-url": "\/images\/default-profile-pic2.svg"
},
"is_vipuser": false,
"id": "11",
"department": null
},
"sla_violated_group": null,
"tags": [
],
"scheduled_end_time": null,
"first_response_due_by_time": null,
"last_updated_time": {
"display_value": "10\/04\/2024 10:22 AM",
"value": "1712715767539"
},
"has_notes": false,
"is_current_ola_violated": null,
"image_token": "58399544641c5d9191af15873b865d7fadd3f0225da6650eb15e228c15d8900e5bebaf39d92e0673164f62a8d56644a2b9bf0b91",
"udf_fields": {
"udf_sline_301": "lironghui"
},
"impact_details": null,
"subcategory": {
"name": "LAN",
"id": "16"
},
"email_cc": [
],
"status": {
"color": "#0066ff",
"name": "Open",
"id": "2"
},
"scheduled_start_time": null,
"template": {
"is_service_template": false,
"service_category": null,
"name": "网络问题",
"id": "301"
},
"email_ids_to_notify": [
],
"primary_asset": null,
"attachments": [
],
"request_type": null,
"cancel_requested_time": null,
"notification_status": null,
"description": null,
"has_dependency": false,
"has_conversation": false,
"fr_sla_violated_technician": null,
"chat_type": 0,
"callback_url": null,
"is_service_request": false,
"urgency": {
"name": "Low",
"id": "4"
},
"is_shared": false,
"cancel_requested": false,
"has_request_initiated_change": false,
"request_template_task_ids": [
],
"department": null,
"is_reopened": true,
"has_draft": false,
"has_attachments": false,
"has_linked_requests": false,
"has_request_caused_by_change": false,
"is_overdue": true,
"technician": null,
"has_problem": false,
"due_by_time": {
"display_value": "10\/04\/2024 11:14 AM",
"value": "1712718872459"
},
"is_first_response_overdue": false,
"cancel_requested_is_pending": false,
"recommend_template": null,
"unreplied_count": null,
"category": {
"name": "网络",
"id": "10"
},
"maintenance": null
},
"response_status": {
"status_code": 2000,
"status": "success"
}
}
4 点击选择SDP高级设置条件
5 点击远程连接时输入满足条件的工单ID并填写连接理由进行系统连接。满足条件的工单ID将会正常进行连接。
6 条件为满足的工单ID将会提示ID无效不能连入资源。