...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
This workflow is built to add users to a group within EmpowerID. When a request is submitted using this workflow, it runs a script block named “Subflow variable mapping”. This is an important step in case we want to use the EmpowerID workflow as a subflow in an existing customer workflow. The second step is the Approval activity, which is currently approved by the system administrator. Once approved (if rejected, the workflow sets the state of the request as “closed incomplete” and ends here), the workflow continues to the third step, which is where the actual API call to EmpowerID is made with all required parameters. Please refer to this article's Integrations section to know the API's details. After a successful call, the workflow marks the state of the RITM as “Closed Complete” and ends.
...
EID – Request Management Role
This workflow is built to associate a management role to a user within EmpowerID for a specified duration of time. At the very beginning, the workflow runs a script block that deals with variable mapping in the case when this workflow is being used as a subflow. The second step is the approval activity, which is currently approved by the system administrator. Once approved (if rejected, the workflow sets the state of the request as “closed incomplete” and ends here), the workflow continues to the third step, which is where the actual API call to EmpowerID is made with all required parameters. Please refer to this document's Integrations section to know more about the API's details. After the successful call, workflow marks the state of the RITM as “Closed Complete” and ends.
...
Data Model
The Orchestration Pack data model includes custom Groups and Management Roles data required for the EmpowerID workflows. In order to keep customer namespace uncluttered, EmpowerID does not use the default out-of-the-box tables for groups and roles, as many EmpowerID-specific attributes need to be maintained. The data for these custom tables is updated by EmpowerID via inbound API.
Tables
...
Groups (x_36687_eid_groups)
...
Management Roles (x_36687_eid_management_roles)
...
Column Label
...
Column Name
...
Type
...
Column Label
...
Column Name
...
Type
...
Group GUID (PK)
...
group_guid
...
String
...
Management Role GUID (PK)
...
management_role_guid
...
String
...
Name
...
name
...
String
...
Name
...
name
...
String
...
Distinguished Name
...
distinguished_name
...
String
...
Friendly Name
...
friendly_name
...
String
...
Is High Security Group
...
...
...
...
...
Boolean
...
Yes
...
risk_factor_total
...
Risk factor of the role
...
...
...
...
...
...
...
...
...
...
...
...
...
Yes
...
extension_attribute_12
...
Extension attribute
...
String
...
Yes
...
extension_attribute_13
...
Extension attribute
...
String
...
Yes
...
extension_attribute_14
...
Extension attribute
...
String
...
Yes
...
extension_attribute_15
...
Extension attribute
...
String
...
Yes
Create Management Groups
MgmtGroups
This endpoint is used to create / push Management Groups from EmpowerID to ServiceNow
HTTP Request
Method: POST
Code Block |
---|
POST https://{FQDN_Of_Your_ServiceNow_Instance}/api/x_36687_eid/eid/mgmtgroups |
Request Data
Request data is sent to the API in JSON format.
...
...
...
...
...
...
...
...
...
...
...
Element
...
Description
...
Type
...
Required
...
group_guid
...
GUID of the group
...
String
...
Yes
...
friendly_name
...
...
distinguished_name
...
...
...
...
Distinguished name of the account store the group belongs to
...
...
...
...
...
...
...
Ending date and time the group is valid
...
Date/Time
...
Yes
...
description
...
...
...
...
Can users request to join the group?
...
...
...
Accept join and leave requests without requiring approval
...
Boolean
...
Yes
...
...
...
notes
...
...
...
Is the group high security?
...
...
...
...
ID of the EmpowerID Person owning the group
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Extension attribute
...
String
...
Yes
...
extension_attribute_7
...
Extension attribute
...
String
...
Yes
...
extension_attribute_8
...
Extension attribute
...
String
...
Yes
...
extension_attribute_9
...
Extension attribute
...
String
...
Yes
...
extension_attribute_10
...
Extension attribute
...
String
...
Yes
...
extension_attribute_11
...
Extension attribute
...
String
...
Yes
...
extension_attribute_12
...
Extension attribute
...
String
...
Yes
...
extension_attribute_13
...
Extension attribute
...
String
...
Yes
...
extension_attribute_14
...
Extension attribute
...
String
...
Yes
...
extension_attribute_15
...
Extension attribute
...
String
...
Yes
Delete Management Roles
...
...
...
...
Delete Management Groups
deleteMgmtGroups
Use this endpoint to delete EmpowerID Groups currently present in ServiceNow.
HTTP Request
Method: POST
...
...
...
...
Header Key/Value Pairs
...
Key
...
Value
...
X-UserToken
...
Your access token
...
Accept
...
application/json
...
Content-Type
...
application/json
Response
...
...
Content-Encoding
...
gzip
...
Date
...
Date / Time GMT
...
Server
...
ServiceNow
...
Strict-Transport-Security
...
max-age63072000; includeSubDomains
...
Transfer-Encoding
...
chunked
...
X-Is-Logged-In
...
true
...
X-Transaction-Id
...
85d3c5addb2u8
...
curl "https://YourServiceNowInstance/api/x_36687_eid/eid/deleteMgmtGroups" \
--request POST \
--header "Accept:application/json" \
--user 'admin':'admin'
...
title | EmpowerID APIs Consumed by ServiceNow |
---|
There are 3 main tasks performed in EmpowerID workflows within ServiceNow that are accomplished by making an API call to EmpowerID application. These tasks are as below:
Create Employee
Assign Group
Assign Management Role
To invoke the above API calls, the identity making the call must have a valid token. For information on getting a token, see Getting an Access Token.
Create Employee
HTTP Method: POST
Endpoint
Code Block |
---|
https://{FQDN_OF_Your_EmpowerID_Web_Server}/api/services/v1/ExecuteWorkflow/start |
Header Key/Value Pairs
...
Key
...
Value
...
Authorization
...
Bearer ${token}
...
X-EmpowerID-API-Key
...
f0f46cce-7cd1-4c34-8f7e-d54e96a2ab41
...
Content-Type
...
application/json
Request Data
Request data is sent to the API in JSON format.
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...