{"product_id":"n8n-workflow-privileged-access-requests-via-servicenow-slack-gmail","title":"n8n Workflow: Privileged Access Requests via ServiceNow, Slack \u0026 Gmail","description":"\u003ch3\u003eAutomate privileged access approvals end-to-end with n8n, ServiceNow, Slack, and Gmail\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow receives privileged access requests through a webhook, creates a tracking request in \u003cstrong\u003eServiceNow\u003c\/strong\u003e, routes approvals through \u003cstrong\u003eSlack\u003c\/strong\u003e (manager, then security), and notifies the requester via \u003cstrong\u003eGmail\u003c\/strong\u003e—including access expiry details and final outcome.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives a webhook POST\u003c\/strong\u003e with \u003ccode\u003erequesterEmail\u003c\/code\u003e, \u003ccode\u003erequestedRole\u003c\/code\u003e, \u003ccode\u003etargetSystem\u003c\/code\u003e, \u003ccode\u003ebusinessJustification\u003c\/code\u003e, and \u003ccode\u003edurationDays\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates the payload\u003c\/strong\u003e (required fields present, email format valid, and \u003cstrong\u003edurationDays between 1 and 90\u003c\/strong\u003e). If validation fails, it returns a \u003cstrong\u003e400 JSON\u003c\/strong\u003e error.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreates an sc_req_item in ServiceNow\u003c\/strong\u003e, calculating submission metadata and a projected access expiry date. If ServiceNow record creation fails, it returns a \u003cstrong\u003e502 JSON\u003c\/strong\u003e error.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReturns a 202 acknowledgment\u003c\/strong\u003e immediately to the caller, while logging the request to a Slack compliance\/audit channel.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRuns sequential Slack approvals\u003c\/strong\u003e: first requests approval from the \u003cstrong\u003emanager\u003c\/strong\u003e, then (only if approved) requests approval from the \u003cstrong\u003esecurity\u003c\/strong\u003e channel.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUpdates ServiceNow and notifies stakeholders\u003c\/strong\u003e:\n    \u003cul\u003e\n      \u003cli\u003eIf \u003cstrong\u003eboth approvals are granted\u003c\/strong\u003e, the workflow updates the ServiceNow request item as approved, sends the requester an email via \u003cstrong\u003eGmail\u003c\/strong\u003e (including the expiry date), and posts confirmation to the security Slack channel.\u003c\/li\u003e\n      \u003cli\u003eIf \u003cstrong\u003eeither approval is denied\u003c\/strong\u003e, it updates the ServiceNow request item as denied, records the outcome, and communicates the result as part of the Slack audit trail.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003ePrivileged role requests for internal tools or SaaS systems that require auditable approval chains.\u003c\/li\u003e\n  \u003cli\u003eStandardizing ServiceNow tracking for access governance requests submitted by employees or admins.\u003c\/li\u003e\n  \u003cli\u003eReducing manual follow-ups by emailing requesters via Gmail only after approvals complete.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWebhook\u003c\/strong\u003e (POST) intake + early \u003cstrong\u003e400\/502\u003c\/strong\u003e validation\/error responses\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eif\u003c\/strong\u003e, \u003cstrong\u003eset\u003c\/strong\u003e, \u003cstrong\u003eno op\u003c\/strong\u003e for control flow and data handling\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eServiceNow\u003c\/strong\u003e record creation for \u003ccode\u003esc_req_item\u003c\/code\u003e and approval outcome updates\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSlack\u003c\/strong\u003e compliance\/audit logging and two-step approval (manager → security)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGmail\u003c\/strong\u003e notification to the requester with the access expiry date\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45899971920051,"sku":"N8N-18684","price":6.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/KXpzHy-_EbGrK7H1QsS3_LAKwRpp9.png?v=1787736042","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-privileged-access-requests-via-servicenow-slack-gmail","provider":"N8N Commerce","version":"1.0","type":"link"}