Policy types for @turbot/servicenow-azure-activedirectory

Azure > Active Directory > Application > ServiceNow

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/applicationServiceNow
Targets

Azure > Active Directory > Application > ServiceNow > Configuration Item

Synchronize the data for the Azure > Active Directory > Application based on the policies Azure > Active Directory > Application > ServiceNow > Configuration Item > *

The Configuration Item control is responsible for automatically synchronizing records in a designated ServiceNow table, maintaining an up-to-date reflection of the Azure > Active Directory > Application information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/applicationServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
],
"example": [
"Skip"
],
"default": "Skip"
}

Azure > Active Directory > Application > ServiceNow > Configuration Item > Record

The policy facilitates the accurate representation of cloud resource within the ServiceNow environment, ensuring that critical data is effectively mapped and managed. Attribute of an Azure > Active Directory > Application is systematically mapped to a specific column in a ServiceNow table.

The policy allows enabling organizations to select and map only those attributes that are most relevant to their operational needs. It significantly reduces the manual effort involved in data transfer and minimizes the risk of errors, thereby enhancing the overall efficiency of data management.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/applicationServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: application{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"app_id: {{ $.resource.data.appId | dump | safe }}\napp_roles: {{ $.resource.data.appRoles | dump | safe }}\ndisplay_name: {{ $.resource.data.displayName | dump | safe }}\nkey_credentials: {{ $.resource.data.keyCredentials | dump | safe }}\nobject_id: {{ $.resource.data.objectId | dump | safe }}\nparental_control_settings: {{ $.resource.data.parentalControlSettings | dump | safe }}\npassword_credentials: {{ $.resource.data.passwordCredentials | dump | safe }}\nsign_in_audience: {{ $.resource.data.signInAudience | dump | safe }}\ntenant_id: {{ $.resource.metadata.azure.tenantId | dump | safe }}\n"
Schema
{
"type": "object"
}

Azure > Active Directory > Application > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Azure > Active Directory > Application data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/applicationServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\n serviceNowInstance: resources(filter: \"resourceTypeId:tmod:@turbot/servicenow#/resource/types/instance level:self limit:1\") {\n items {\n turbot {\n id\n }\n }\n }\n}\n",
"{\n tableDefinition: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow-azure-activedirectory#/policy/types/applicationServiceNowTableDefinition resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n applicationScope: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow#/policy/types/serviceNowApplicationScope resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n}\n"
]
Default Template
"tableName: "{%- if $.applicationScope.items | length == 0 or $.tableDefinition.items | length == 0 %} {%- else %}{{$.applicationScope.items[0].value}}_{{$.tableDefinition.items[0].value.table.name | lower}}{% endif %}"\n"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

Azure > Active Directory > Application > ServiceNow > Table

Configure a Table for Azure > Active Directory > Application resource type in ServiceNow via the Azure > Active Directory > Application > ServiceNow > Table > * policies.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/applicationServiceNowTable
Valid Value
[
"Skip",
"Check: Configured",
"Enforce: Configured"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Configured",
"Enforce: Configured"
],
"example": [
"Skip"
],
"default": "Skip"
}

Azure > Active Directory > Application > ServiceNow > Table > Definition

The policy enables the definition of ServiceNow table properties, including its name and the base table from which it extends, and details the specific columns required for representing Azure > Active Directory > Application data.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/applicationServiceNowTableDefinition
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"table",
"columns"
],
"properties": {
"table": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string"
},
"extendsTable": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
}
}
},
"columns": {
"type": "array",
"description": "An array of columns with their mappings to the CMDB.",
"default": [],
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the column in the table.",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string",
"description": "The label for the column."
},
"type": {
"description": "The data type of the column.",
"type": "string"
},
"size": {
"type": "integer",
"description": "The length for data type."
}
}
}
}
},
"default": {
"table": {
"name": "guardrails_azure_activedirectory_application",
"label": "Azure > Active Directory > Application",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "app_id",
"label": "App Id"
},
{
"name": "app_roles",
"label": "App Roles",
"type": "string",
"size": 1000
},
{
"name": "display_name",
"label": "Display Name"
},
{
"name": "key_credentials",
"label": "Key Credentials"
},
{
"name": "object_id",
"label": "Object Id"
},
{
"name": "parental_control_settings",
"label": "Parental Control Settings",
"type": "string",
"size": 1000
},
{
"name": "password_credentials",
"label": "Password Credentials",
"type": "string",
"size": 1000
},
{
"name": "sign_in_audience",
"label": "Sign In Audience"
},
{
"name": "tenant_id",
"label": "Tenant ID",
"type": "string"
}
]
}
}

Azure > Active Directory > Client Secret > ServiceNow

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/clientSecretServiceNow
Targets

Azure > Active Directory > Client Secret > ServiceNow > Configuration Item

Synchronize the data for the Azure > Active Directory > Client Secret based on the policies Azure > Active Directory > Client Secret > ServiceNow > Configuration Item > *

The Configuration Item control is responsible for automatically synchronizing records in a designated ServiceNow table, maintaining an up-to-date reflection of the Azure > Active Directory > Client Secret information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/clientSecretServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
],
"example": [
"Skip"
],
"default": "Skip"
}

Azure > Active Directory > Client Secret > ServiceNow > Configuration Item > Record

The policy facilitates the accurate representation of cloud resource within the ServiceNow environment, ensuring that critical data is effectively mapped and managed. Attribute of an Azure > Active Directory > Client Secret is systematically mapped to a specific column in a ServiceNow table.

The policy allows enabling organizations to select and map only those attributes that are most relevant to their operational needs. It significantly reduces the manual effort involved in data transfer and minimizes the risk of errors, thereby enhancing the overall efficiency of data management.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/clientSecretServiceNowConfigurationItemRecord
Default Template Input
"{\n resource {\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"display_name: {{ $.resource.data.displayName | dump | safe }}\nend_date_time: {{ $.resource.data.endDateTime | dump | safe }}\nhint: {{ $.resource.data.hint | dump | safe }}\nkey_id: {{ $.resource.data.keyId | dump | safe }}\nstart_date_time: {{ $.resource.data.startDateTime | dump | safe }}\ntenant_id: {{ $.resource.metadata.azure.tenantId | dump | safe }}\n"
Schema
{
"type": "object"
}

Azure > Active Directory > Client Secret > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Azure > Active Directory > Client Secret data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/clientSecretServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\n serviceNowInstance: resources(filter: \"resourceTypeId:tmod:@turbot/servicenow#/resource/types/instance level:self limit:1\") {\n items {\n turbot {\n id\n }\n }\n }\n}\n",
"{\n tableDefinition: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow-azure-activedirectory#/policy/types/clientSecretServiceNowTableDefinition resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n applicationScope: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow#/policy/types/serviceNowApplicationScope resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n}\n"
]
Default Template
"tableName: "{%- if $.applicationScope.items | length == 0 or $.tableDefinition.items | length == 0 %} {%- else %}{{$.applicationScope.items[0].value}}_{{$.tableDefinition.items[0].value.table.name | lower}}{% endif %}"\n"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

Azure > Active Directory > Client Secret > ServiceNow > Table

Configure a Table for Azure > Active Directory > Client Secret resource type in ServiceNow via the Azure > Active Directory > Client Secret > ServiceNow > Table > * policies.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/clientSecretServiceNowTable
Valid Value
[
"Skip",
"Check: Configured",
"Enforce: Configured"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Configured",
"Enforce: Configured"
],
"example": [
"Skip"
],
"default": "Skip"
}

Azure > Active Directory > Client Secret > ServiceNow > Table > Definition

The policy enables the definition of ServiceNow table properties, including its name and the base table from which it extends, and details the specific columns required for representing Azure > Active Directory > Client Secret data.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/clientSecretServiceNowTableDefinition
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"table",
"columns"
],
"properties": {
"table": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string"
},
"extendsTable": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
}
}
},
"columns": {
"type": "array",
"description": "An array of columns with their mappings to the CMDB.",
"default": [],
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the column in the table.",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string",
"description": "The label for the column."
},
"type": {
"description": "The data type of the column.",
"type": "string"
},
"size": {
"type": "integer",
"description": "The length for data type."
}
}
}
}
},
"default": {
"table": {
"name": "guardrails_azure_activedirectory_clientsecret",
"label": "Azure > Active Directory > Client Secret",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "display_name",
"label": "Display Name"
},
{
"name": "end_date_time",
"label": "End Date Time"
},
{
"name": "hint",
"label": "Hint"
},
{
"name": "key_id",
"label": "Key ID"
},
{
"name": "start_date_time",
"label": "Start Date Time"
},
{
"name": "tenant_id",
"label": "Tenant ID",
"type": "string"
}
]
}
}

Azure > Active Directory > Custom Domain > ServiceNow

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/customDomainServiceNow
Targets

Azure > Active Directory > Custom Domain > ServiceNow > Configuration Item

Synchronize the data for the Azure > Active Directory > Custom Domain based on the policies Azure > Active Directory > Custom Domain > ServiceNow > Configuration Item > *

The Configuration Item control is responsible for automatically synchronizing records in a designated ServiceNow table, maintaining an up-to-date reflection of the Azure > Active Directory > Custom Domain information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/customDomainServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
],
"example": [
"Skip"
],
"default": "Skip"
}

Azure > Active Directory > Custom Domain > ServiceNow > Configuration Item > Record

The policy facilitates the accurate representation of cloud resource within the ServiceNow environment, ensuring that critical data is effectively mapped and managed. Attribute of an Azure > Active Directory > Custom Domain is systematically mapped to a specific column in a ServiceNow table.

The policy allows enabling organizations to select and map only those attributes that are most relevant to their operational needs. It significantly reduces the manual effort involved in data transfer and minimizes the risk of errors, thereby enhancing the overall efficiency of data management.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/customDomainServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: customDomain{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"authentication_type: {{ $.resource.data.authenticationType | dump | safe }}\ncustom_domain_name: {{ $.resource.data.name | dump | safe }}\nid: {{ $.resource.data.id | dump | safe }}\nis_admin_managed: {{ $.resource.data.isAdminManaged | dump | safe }}\nis_default: {{ $.resource.data.isDefault | dump | safe }}\nis_default_for_cloud_redirections: {{ $.resource.data.isDefaultForCloudRedirections | dump | safe }}\nis_initial: {{ $.resource.data.isInitial | dump | safe }}\nis_root: {{ $.resource.data.isRoot | dump | safe }}\nis_verified: {{ $.resource.data.isVerified | dump | safe }}\nsupported_services: {{ $.resource.data.supportedServices | dump | safe }}\ntenant_id: {{ $.resource.metadata.azure.tenantId | dump | safe }}\n"
Schema
{
"type": "object"
}

Azure > Active Directory > Custom Domain > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Azure > Active Directory > Custom Domain data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/customDomainServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\n serviceNowInstance: resources(filter: \"resourceTypeId:tmod:@turbot/servicenow#/resource/types/instance level:self limit:1\") {\n items {\n turbot {\n id\n }\n }\n }\n}\n",
"{\n tableDefinition: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow-azure-activedirectory#/policy/types/customDomainServiceNowTableDefinition resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n applicationScope: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow#/policy/types/serviceNowApplicationScope resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n}\n"
]
Default Template
"tableName: "{%- if $.applicationScope.items | length == 0 or $.tableDefinition.items | length == 0 %} {%- else %}{{$.applicationScope.items[0].value}}_{{$.tableDefinition.items[0].value.table.name | lower}}{% endif %}"\n"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

Azure > Active Directory > Custom Domain > ServiceNow > Table

Configure a Table for Azure > Active Directory > Custom Domain resource type in ServiceNow via the Azure > Active Directory > Custom Domain > ServiceNow > Table > * policies.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/customDomainServiceNowTable
Valid Value
[
"Skip",
"Check: Configured",
"Enforce: Configured"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Configured",
"Enforce: Configured"
],
"example": [
"Skip"
],
"default": "Skip"
}

Azure > Active Directory > Custom Domain > ServiceNow > Table > Definition

The policy enables the definition of ServiceNow table properties, including its name and the base table from which it extends, and details the specific columns required for representing Azure > Active Directory > Custom Domain data.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/customDomainServiceNowTableDefinition
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"table",
"columns"
],
"properties": {
"table": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string"
},
"extendsTable": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
}
}
},
"columns": {
"type": "array",
"description": "An array of columns with their mappings to the CMDB.",
"default": [],
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the column in the table.",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string",
"description": "The label for the column."
},
"type": {
"description": "The data type of the column.",
"type": "string"
},
"size": {
"type": "integer",
"description": "The length for data type."
}
}
}
}
},
"default": {
"table": {
"name": "guardrails_azure_activedirectory_customdomain",
"label": "Azure > Active Directory > Custom Domain",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "authentication_type",
"label": "Authentication Type"
},
{
"name": "custom_domain_name",
"label": "Custom Domain Name"
},
{
"name": "id",
"label": "Id"
},
{
"name": "is_admin_managed",
"label": "Is Admin Managed",
"type": "boolean"
},
{
"name": "is_default",
"label": "Is Default",
"type": "boolean"
},
{
"name": "is_default_for_cloud_redirections",
"label": "Is Default For Cloud Redirections",
"type": "boolean"
},
{
"name": "is_initial",
"label": "Is Initial",
"type": "boolean"
},
{
"name": "is_root",
"label": "Is Root",
"type": "boolean"
},
{
"name": "is_verified",
"label": "Is Verified",
"type": "boolean"
},
{
"name": "supported_services",
"label": "Supported Services",
"type": "string"
},
{
"name": "tenant_id",
"label": "Tenant ID",
"type": "string"
}
]
}
}

Azure > Active Directory > Directory > ServiceNow

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/directoryServiceNow
Targets

Azure > Active Directory > Directory > ServiceNow > Configuration Item

Synchronize the data for the Azure > Active Directory > Directory based on the policies Azure > Active Directory > Directory > ServiceNow > Configuration Item > *

The Configuration Item control is responsible for automatically synchronizing records in a designated ServiceNow table, maintaining an up-to-date reflection of the Azure > Active Directory > Directory information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/directoryServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
],
"example": [
"Skip"
],
"default": "Skip"
}

Azure > Active Directory > Directory > ServiceNow > Configuration Item > Record

The policy facilitates the accurate representation of cloud resource within the ServiceNow environment, ensuring that critical data is effectively mapped and managed. Attribute of an Azure > Active Directory > Directory is systematically mapped to a specific column in a ServiceNow table.

The policy allows enabling organizations to select and map only those attributes that are most relevant to their operational needs. It significantly reduces the manual effort involved in data transfer and minimizes the risk of errors, thereby enhancing the overall efficiency of data management.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/directoryServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: directory{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"capabilities: {{ $.resource.data.capabilities | dump | safe }}\nid: {{ $.resource.data.id | dump | safe }}\nis_default: {{ $.resource.data.isDefault | dump | safe }}\nis_initial: {{ $.resource.data.isInitial | dump | safe }}\ndirectory_name: {{ $.resource.data.name | dump | safe }}\ntenant_id: {{ $.resource.metadata.azure.tenantId | dump | safe }}\n"
Schema
{
"type": "object"
}

Azure > Active Directory > Directory > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Azure > Active Directory > Directory data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/directoryServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\n serviceNowInstance: resources(filter: \"resourceTypeId:tmod:@turbot/servicenow#/resource/types/instance level:self limit:1\") {\n items {\n turbot {\n id\n }\n }\n }\n}\n",
"{\n tableDefinition: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow-azure-activedirectory#/policy/types/directoryServiceNowTableDefinition resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n applicationScope: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow#/policy/types/serviceNowApplicationScope resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n}\n"
]
Default Template
"tableName: "{%- if $.applicationScope.items | length == 0 or $.tableDefinition.items | length == 0 %} {%- else %}{{$.applicationScope.items[0].value}}_{{$.tableDefinition.items[0].value.table.name | lower}}{% endif %}"\n"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

Azure > Active Directory > Directory > ServiceNow > Table

Configure a Table for Azure > Active Directory > Directory resource type in ServiceNow via the Azure > Active Directory > Directory > ServiceNow > Table > * policies.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/directoryServiceNowTable
Valid Value
[
"Skip",
"Check: Configured",
"Enforce: Configured"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Configured",
"Enforce: Configured"
],
"example": [
"Skip"
],
"default": "Skip"
}

Azure > Active Directory > Directory > ServiceNow > Table > Definition

The policy enables the definition of ServiceNow table properties, including its name and the base table from which it extends, and details the specific columns required for representing Azure > Active Directory > Directory data.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/directoryServiceNowTableDefinition
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"table",
"columns"
],
"properties": {
"table": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string"
},
"extendsTable": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
}
}
},
"columns": {
"type": "array",
"description": "An array of columns with their mappings to the CMDB.",
"default": [],
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the column in the table.",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string",
"description": "The label for the column."
},
"type": {
"description": "The data type of the column.",
"type": "string"
},
"size": {
"type": "integer",
"description": "The length for data type."
}
}
}
}
},
"default": {
"table": {
"name": "guardrails_azure_activedirectory_directory",
"label": "Azure > Active Directory > Directory",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "capabilities",
"label": "Capabilities"
},
{
"name": "id",
"label": "ID"
},
{
"name": "is_default",
"label": "Is Default",
"type": "boolean"
},
{
"name": "is_initial",
"label": "Is Initial",
"type": "boolean"
},
{
"name": "directory_name",
"label": "Directory Name"
},
{
"name": "tenant_id",
"label": "Tenant ID",
"type": "string"
}
]
}
}

Azure > Active Directory > Group > ServiceNow

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/groupServiceNow
Targets

Azure > Active Directory > Group > ServiceNow > Configuration Item

Synchronize the data for the Azure > Active Directory > Group based on the policies Azure > Active Directory > Group > ServiceNow > Configuration Item > *

The Configuration Item control is responsible for automatically synchronizing records in a designated ServiceNow table, maintaining an up-to-date reflection of the Azure > Active Directory > Group information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/groupServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
],
"example": [
"Skip"
],
"default": "Skip"
}

Azure > Active Directory > Group > ServiceNow > Configuration Item > Record

The policy facilitates the accurate representation of cloud resource within the ServiceNow environment, ensuring that critical data is effectively mapped and managed. Attribute of an Azure > Active Directory > Group is systematically mapped to a specific column in a ServiceNow table.

The policy allows enabling organizations to select and map only those attributes that are most relevant to their operational needs. It significantly reduces the manual effort involved in data transfer and minimizes the risk of errors, thereby enhancing the overall efficiency of data management.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/groupServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: group{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"display_name: {{ $.resource.data.displayName | dump | safe }}\ngroup_members: {{ $.resource.data.groupMembers | dump | safe }}\nmail: {{ $.resource.data.mail | dump | safe }}\nmail_enabled: {{ $.resource.data.mailEnabled | dump | safe }}\nobject_id: {{ $.resource.data.objectId | dump | safe }}\nobject_type: {{ $.resource.data.objectType | dump | safe }}\nsecurity_enabled: {{ $.resource.data.securityEnabled | dump | safe }}\ntenant_id: {{ $.resource.metadata.azure.tenantId | dump | safe }}\n"
Schema
{
"type": "object"
}

Azure > Active Directory > Group > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Azure > Active Directory > Group data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/groupServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\n serviceNowInstance: resources(filter: \"resourceTypeId:tmod:@turbot/servicenow#/resource/types/instance level:self limit:1\") {\n items {\n turbot {\n id\n }\n }\n }\n}\n",
"{\n tableDefinition: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow-azure-activedirectory#/policy/types/groupServiceNowTableDefinition resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n applicationScope: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow#/policy/types/serviceNowApplicationScope resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n}\n"
]
Default Template
"tableName: "{%- if $.applicationScope.items | length == 0 or $.tableDefinition.items | length == 0 %} {%- else %}{{$.applicationScope.items[0].value}}_{{$.tableDefinition.items[0].value.table.name | lower}}{% endif %}"\n"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

Azure > Active Directory > Group > ServiceNow > Table

Configure a Table for Azure > Active Directory > Group resource type in ServiceNow via the Azure > Active Directory > Group > ServiceNow > Table > * policies.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/groupServiceNowTable
Valid Value
[
"Skip",
"Check: Configured",
"Enforce: Configured"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Configured",
"Enforce: Configured"
],
"example": [
"Skip"
],
"default": "Skip"
}

Azure > Active Directory > Group > ServiceNow > Table > Definition

The policy enables the definition of ServiceNow table properties, including its name and the base table from which it extends, and details the specific columns required for representing Azure > Active Directory > Group data.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/groupServiceNowTableDefinition
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"table",
"columns"
],
"properties": {
"table": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string"
},
"extendsTable": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
}
}
},
"columns": {
"type": "array",
"description": "An array of columns with their mappings to the CMDB.",
"default": [],
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the column in the table.",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string",
"description": "The label for the column."
},
"type": {
"description": "The data type of the column.",
"type": "string"
},
"size": {
"type": "integer",
"description": "The length for data type."
}
}
}
}
},
"default": {
"table": {
"name": "guardrails_azure_activedirectory_group",
"label": "Azure > Active Directory > Group",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "display_name",
"label": "Display Name"
},
{
"name": "group_members",
"label": "Group Members",
"type": "string",
"size": 1000
},
{
"name": "mail",
"label": "Mail"
},
{
"name": "mail_enabled",
"label": "Mail Enabled",
"type": "boolean"
},
{
"name": "object_id",
"label": "Object ID"
},
{
"name": "object_type",
"label": "Object Type"
},
{
"name": "security_enabled",
"label": "Security Enabled",
"type": "boolean"
},
{
"name": "tenant_id",
"label": "Tenant ID",
"type": "string"
}
]
}
}

Azure > Active Directory > Service Principal > ServiceNow

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/servicePrincipalServiceNow
Targets

Azure > Active Directory > Service Principal > ServiceNow > Configuration Item

Synchronize the data for the Azure > Active Directory > Service Principal based on the policies Azure > Active Directory > Service Principal > ServiceNow > Configuration Item > *

The Configuration Item control is responsible for automatically synchronizing records in a designated ServiceNow table, maintaining an up-to-date reflection of the Azure > Active Directory > Service Principal information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/servicePrincipalServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
],
"example": [
"Skip"
],
"default": "Skip"
}

Azure > Active Directory > Service Principal > ServiceNow > Configuration Item > Record

The policy facilitates the accurate representation of cloud resource within the ServiceNow environment, ensuring that critical data is effectively mapped and managed. Attribute of an Azure > Active Directory > Service Principal is systematically mapped to a specific column in a ServiceNow table.

The policy allows enabling organizations to select and map only those attributes that are most relevant to their operational needs. It significantly reduces the manual effort involved in data transfer and minimizes the risk of errors, thereby enhancing the overall efficiency of data management.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/servicePrincipalServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: servicePrincipal{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"account_enabled: {{ $.resource.data.accountEnabled | dump | safe }}\napp_id: {{ $.resource.data.appId | dump | safe }}\napp_owner_organization_id: {{ $.resource.data.appOwnerOrganizationId | dump | safe }}\napp_role_assignment_required: {{ $.resource.data.appRoleAssignmentRequired | dump | safe }}\ndisplay_name: {{ $.resource.data.displayName | dump | safe }}\nid: {{ $.resource.data.id | dump | safe }}\ninfo: {{ $.resource.data.info | dump | safe }}\nobject_id: {{ $.resource.data.objectId | dump | safe }}\nservice_principal_names: {{ $.resource.data.servicePrincipalNames | dump | safe }}\nservice_principal_type: {{ $.resource.data.servicePrincipalType | dump | safe }}\nsign_in_audience: {{ $.resource.data.signInAudience | dump | safe }}\ntenant_id: {{ $.resource.metadata.azure.tenantId | dump | safe }}\n"
Schema
{
"type": "object"
}

Azure > Active Directory > Service Principal > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Azure > Active Directory > Service Principal data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/servicePrincipalServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\n serviceNowInstance: resources(filter: \"resourceTypeId:tmod:@turbot/servicenow#/resource/types/instance level:self limit:1\") {\n items {\n turbot {\n id\n }\n }\n }\n}\n",
"{\n tableDefinition: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow-azure-activedirectory#/policy/types/servicePrincipalServiceNowTableDefinition resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n applicationScope: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow#/policy/types/serviceNowApplicationScope resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n}\n"
]
Default Template
"tableName: "{%- if $.applicationScope.items | length == 0 or $.tableDefinition.items | length == 0 %} {%- else %}{{$.applicationScope.items[0].value}}_{{$.tableDefinition.items[0].value.table.name | lower}}{% endif %}"\n"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

Azure > Active Directory > Service Principal > ServiceNow > Table

Configure a Table for Azure > Active Directory > Service Principal resource type in ServiceNow via the Azure > Active Directory > Service Principal > ServiceNow > Table > * policies.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/servicePrincipalServiceNowTable
Valid Value
[
"Skip",
"Check: Configured",
"Enforce: Configured"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Configured",
"Enforce: Configured"
],
"example": [
"Skip"
],
"default": "Skip"
}

Azure > Active Directory > Service Principal > ServiceNow > Table > Definition

The policy enables the definition of ServiceNow table properties, including its name and the base table from which it extends, and details the specific columns required for representing Azure > Active Directory > Service Principal data.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/servicePrincipalServiceNowTableDefinition
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"table",
"columns"
],
"properties": {
"table": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string"
},
"extendsTable": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
}
}
},
"columns": {
"type": "array",
"description": "An array of columns with their mappings to the CMDB.",
"default": [],
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the column in the table.",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string",
"description": "The label for the column."
},
"type": {
"description": "The data type of the column.",
"type": "string"
},
"size": {
"type": "integer",
"description": "The length for data type."
}
}
}
}
},
"default": {
"table": {
"name": "guardrails_azure_activedirectory_serviceprincipal",
"label": "Azure > Active Directory > Service Principal",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "account_enabled",
"label": "Account Enabled"
},
{
"name": "app_id",
"label": "App Id"
},
{
"name": "app_owner_organization_id",
"label": "App Owner Organization ID"
},
{
"name": "app_role_assignment_required",
"label": "App Role Assignment Required"
},
{
"name": "display_name",
"label": "Display Name"
},
{
"name": "id",
"label": "ID"
},
{
"name": "info",
"label": "Info",
"type": "string",
"size": 1000
},
{
"name": "object_id",
"label": "Object ID"
},
{
"name": "service_principal_names",
"label": "Service Principal Names",
"type": "string",
"size": 1000
},
{
"name": "service_principal_type",
"label": "Service Principal Type",
"type": "string",
"size": 1000
},
{
"name": "sign_in_audience",
"label": "Sign In Audience",
"type": "string",
"size": 1000
},
{
"name": "tenant_id",
"label": "Tenant ID",
"type": "string"
}
]
}
}

Azure > Active Directory > User > ServiceNow

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/userServiceNow
Targets

Azure > Active Directory > User > ServiceNow > Configuration Item

Synchronize the data for the Azure > Active Directory > User based on the policies Azure > Active Directory > User > ServiceNow > Configuration Item > *

The Configuration Item control is responsible for automatically synchronizing records in a designated ServiceNow table, maintaining an up-to-date reflection of the Azure > Active Directory > User information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/userServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
],
"example": [
"Skip"
],
"default": "Skip"
}

Azure > Active Directory > User > ServiceNow > Configuration Item > Record

The policy facilitates the accurate representation of cloud resource within the ServiceNow environment, ensuring that critical data is effectively mapped and managed. Attribute of an Azure > Active Directory > User is systematically mapped to a specific column in a ServiceNow table.

The policy allows enabling organizations to select and map only those attributes that are most relevant to their operational needs. It significantly reduces the manual effort involved in data transfer and minimizes the risk of errors, thereby enhancing the overall efficiency of data management.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/userServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: user{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"account_enabled: {{ $.resource.data.accountEnabled | dump | safe }}\ndisplay_name: {{ $.resource.data.displayName | dump | safe }}\nobject_id: {{ $.resource.data.objectId | dump | safe }}\nobject_type: {{ $.resource.data.objectType | dump | safe }}\nsign_in_names: {{ $.resource.data.signInNames | dump | safe }}\ntenant_id: {{ $.resource.metadata.azure.tenantId | dump | safe }}\nuser_principal_name: {{ $.resource.data.userPrincipalName | dump | safe }}\nuser_type: {{ $.resource.data.userType | dump | safe }}\n"
Schema
{
"type": "object"
}

Azure > Active Directory > User > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Azure > Active Directory > User data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/userServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\n serviceNowInstance: resources(filter: \"resourceTypeId:tmod:@turbot/servicenow#/resource/types/instance level:self limit:1\") {\n items {\n turbot {\n id\n }\n }\n }\n}\n",
"{\n tableDefinition: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow-azure-activedirectory#/policy/types/userServiceNowTableDefinition resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n applicationScope: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow#/policy/types/serviceNowApplicationScope resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n}\n"
]
Default Template
"tableName: "{%- if $.applicationScope.items | length == 0 or $.tableDefinition.items | length == 0 %} {%- else %}{{$.applicationScope.items[0].value}}_{{$.tableDefinition.items[0].value.table.name | lower}}{% endif %}"\n"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

Azure > Active Directory > User > ServiceNow > Table

Configure a Table for Azure > Active Directory > User resource type in ServiceNow via the Azure > Active Directory > User > ServiceNow > Table > * policies.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/userServiceNowTable
Valid Value
[
"Skip",
"Check: Configured",
"Enforce: Configured"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Configured",
"Enforce: Configured"
],
"example": [
"Skip"
],
"default": "Skip"
}

Azure > Active Directory > User > ServiceNow > Table > Definition

The policy enables the definition of ServiceNow table properties, including its name and the base table from which it extends, and details the specific columns required for representing Azure > Active Directory > User data.

URI
tmod:@turbot/servicenow-azure-activedirectory#/policy/types/userServiceNowTableDefinition
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"table",
"columns"
],
"properties": {
"table": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string"
},
"extendsTable": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
}
}
},
"columns": {
"type": "array",
"description": "An array of columns with their mappings to the CMDB.",
"default": [],
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the column in the table.",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string",
"description": "The label for the column."
},
"type": {
"description": "The data type of the column.",
"type": "string"
},
"size": {
"type": "integer",
"description": "The length for data type."
}
}
}
}
},
"default": {
"table": {
"name": "guardrails_azure_activedirectory_user",
"label": "Azure > Active Directory > User",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "account_enabled",
"label": "Account Enabled",
"type": "boolean"
},
{
"name": "display_name",
"label": "Display Name"
},
{
"name": "object_id",
"label": "Object ID"
},
{
"name": "object_type",
"label": "Object Type"
},
{
"name": "sign_in_names",
"label": "Sign In Names",
"type": "string",
"size": 1000
},
{
"name": "tenant_id",
"label": "Tenant ID",
"type": "string"
},
{
"name": "user_principal_name",
"label": "User Principal Name"
},
{
"name": "user_type",
"label": "User Type"
}
]
}
}