I want to provision proxyAddresses attribute during AD provisioning and need help

Hey Guys,

I need to provision below as proxyaddresess attribute while creating account in AD :

SMTP:[email protected]
smtp:[email protected]
smtp:[email protected]

where userid is identity attribute. Can someone kindly help how to provision proxyaddresses attribute in AD

You need to set isMultiValued flag to true and set the cloudDelimiter to comma.

Assuming userID is an identity attribute, your code in create policy should be like

{
	"name": "proxyAddresses",
	"transform": {
		"type": "static",
		"attributes": {
			"userID": {
				"attributes": {
					"values": [
						{
							"attributes": {
								"name": "userid"
							},
							"type": "identityAttribute"
						},
						"NONE"
					]
				},
				"type": "firstValid"
			},			
			"value": "#if($userID != 'NONE')SMTP:[email protected],smtp:[email protected],smtp:[email protected]#end"
		}
	},
	"attributes": {
		"cloudDelimiter": ","
	},
	"isRequired": false,
	"type": "string",
	"isMultiValued": true
}

thanks @sharvari but i got an error Request completed
An unexpected error occurred: Invalid get reference: $userId - seaspray[line 1, column 5]

You need to use the variable name that’s appropriate for your transform and your tenant identity attributes. It is case sensitive.

yes i used userId only then also

@sharvari i am not understanding one thing once i save as userId and aftersometime it becomes userID again any idea why ?
“userID”: {
“attributes”: {
“values”: [
{

i am saving it in vs code