Substring Transform within Workflow

Hi @Yathish thank you for you information I am aware on that.

@mosareini check my suggestion below

Step1:
Add one Attribute in Identity Profile and add the below transform

Add you SourceName

{

	"attributes": {
		"user": {
			"attributes": {
				"dn": {
					"attributes": {
						"values": [
							{
								"attributes": {
									"sourceName": "Active Directory",
									"attributeName": "distinguishedName"
								},
								"type": "accountAttribute"
							}
						]
					},
					"type": "firstValid"
				},
				"value": "#set($cnToRemove = $splittf)#if($dn.contains($cnToRemove))#set($dn = $dn.replace($cnToRemove, ''))#set($dn = $dn.replaceFirst(',', ''))#end$dn",
				"splittf": {
					"attributes": {
						"input": {
							"attributes": {
								"values": [
									{
										"attributes": {
											"sourceName": "Active Directory",
											"attributeName": "distinguishedName"
										},
										"type": "accountAttribute"
									}
								]
							},
							"type": "firstValid"
						},
						"delimiter": ",",
						"index": 0
					},
					"type": "split"
				}
			},
			"type": "static"
		},
		"Manager": {
			"attributes": {
				"dn": {
					"attributes": {
						"values": [
							{
								"attributes": {
									"sourceName": "Active Directory",
									"attributeName": "manager"
								},
								"type": "accountAttribute"
							}
						]
					},
					"type": "firstValid"
				},
				"value": "#set($cnToRemove = $splittf)#if($dn.contains($cnToRemove))#set($dn = $dn.replace($cnToRemove, ''))#set($dn = $dn.replaceFirst(',', ''))#end$dn",
				"splittf": {
					"attributes": {
						"input": {
							"attributes": {
								"values": [
									{
										"attributes": {
											"sourceName": "Active Directory",
											"attributeName": "manager"
										},
										"type": "accountAttribute"
									}
								]
							},
							"type": "firstValid"
						},
						"delimiter": ",",
						"index": 0
					},
					"type": "split"
				}
			},
			"type": "static"
		},
		"value": "#if($Manager==$user)True#{else}False#end"
	},
	"type": "static",
	"name": "Static Transform Compare DN Manager"
}

After applying the above transform for the newly created attribute then the output contains True or False ,so use this attribute in workflow using compare strings operator, if the identity attribute(newly attribute)
value equals to false the next step wii be create tickets .Let me know for any queries.

Thank You
Mahesh