You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aws_security_incident_response_sample_integrations/aws_security_incident_response_service_now_integration_stack.py
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -93,12 +93,14 @@ def __init__(
93
93
no_echo=True,
94
94
)
95
95
96
-
# Store Service Now User ID parameter
96
+
# Store Service Now User sys_id parameter
97
+
# NOTE: Parameter name kept as "serviceNowUserId" for backwards compatibility.
98
+
# The CLI flag is --sys-id and the value must be the user's sys_id (32-char GUID), not the username.
97
99
service_now_user_id_param=CfnParameter(
98
100
self,
99
101
"serviceNowUserId",
100
102
type="String",
101
-
description="The ServiceNow user ID for JWT authentication.",
103
+
description="The ServiceNow user's sys_id for JWT authentication (not the username).",
f"AwsSecurityIncidentResponseServiceNowIntegrationStack:serviceNowUserId={args.sys_id}",# CDK parameter name kept as serviceNowUserId for backwards compatibility
Copy file name to clipboardExpand all lines: documentation/SERVICE_NOW/SERVICE_NOW.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ section in this document.
11
11
--instance-id <your-servicenow-instance-id> \
12
12
--client-id <your-oauth-client-id> \
13
13
--client-secret <your-oauth-client-secret> \
14
-
--user-id <your-servicenow-user-id> \
14
+
--sys-id <your-servicenow-user-sys-id> \
15
15
--private-key-path <path-to-private-key-file> \
16
16
--integration-module <itsm|ir> \
17
17
--log-level <info|error|debug>
@@ -24,7 +24,7 @@ Eg.
24
24
--instance-id dev1234 \
25
25
--client-id test-1234 \
26
26
--client-secret "XXXXXXXXXXXXXXXXXXXX" \
27
-
--user-id abcd.1234 \
27
+
--sys-id a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6 \
28
28
--private-key-path private.key \
29
29
--integration-module ir \
30
30
--log-level info
@@ -85,6 +85,7 @@ JWT (JSON Web Token) OAuth authentication uses RSA key pairs to generate signed
85
85
- First Name: `AWS`
86
86
- Last Name: `Integration`
87
87
4. If you have a user, search with user-id and open the record
88
+
5. Note the user's `sys_id` — you will need this for deployment. The `sys_id` is a 32-character unique identifier (e.g., `a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6`). You can find it by right-clicking the header bar of the user record and selecting "Copy sys_id", or from the URL when viewing the user record.
88
89
5. Assign the following roles under the `Roles` tab by clicking on `Edit`:
89
90
90
91
**ITSM Mode (incident table):**
@@ -259,7 +260,7 @@ Bootstrap is a prerequisite to deployment. You cannot deploy the solution which
259
260
- **Access Token Lifespan**: `3600`
260
261
- **Clock skew**: `300`
261
262
- **Token Format**: `Opaque`
262
-
- **User field**: `User Id`
263
+
- **User field**: `sys_id`
263
264
- **Enable JTI verification**: ✅
264
265
- **JTI Claim**: `jti`
265
266
- **JWKS Cache Lifespan**: `720`
@@ -600,7 +601,7 @@ The stack provides the following outputs that can be used for integration:
600
601
--instance-id <your-servicenow-instance-id> \
601
602
--client-id <your-oauth-client-id> \
602
603
--client-secret <your-oauth-client-secret> \
603
-
--user-id <your-servicenow-user-id> \
604
+
--sys-id <your-servicenow-user-sys-id> \
604
605
--private-key-path <path-to-private-key-file> \
605
606
--integration-module <itsm|ir> \
606
607
--log-level info
@@ -609,7 +610,7 @@ The stack provides the following outputs that can be used for integration:
609
610
**Required Parameters:**
610
611
- `--client-id`: OAuth client ID from ServiceNow OAuth application
611
612
- `--client-secret`: OAuth client secret from ServiceNow OAuth application
612
-
- `--user-id`: ServiceNow user IDfor JWT authentication
613
+
- `--sys-id`: ServiceNow user's `sys_id` for JWT authentication (not the username — see [Setup ServiceNow Integration User](#setup-servicenow-integration-user))
613
614
- `--private-key-path`: Path to RSA private key file for JWT signing
614
615
- `--integration-module`: Choose `itsm` for IT Service Management or `ir` for Incident Response module
0 commit comments