Skip to main content
Question

Azure AD - Orch - Office Location (physicalDeliveryOfficeName)


Forum|alt.badge.img

Hello,

I’m designing a workflow using Azure AD Orch that will Create Users. The action Create Users does not have a default payload field for Office Location, which I find bizarre because they even mention this field as an Output in their instructions. How can I successfully populate this payload? I’ve tried the following in custom attributes:

{{ticket.onboarding_request.actor_1.cf_location}}

{{A1.officeLocation}}

I’ve even tried using the extension_json for my Azure AD Orch_ physicalDeliveryOfficeName

Thanks!

 

Did this topic help you find an answer to your question?

3 replies

zachary.king
Skilled Expert
Forum|alt.badge.img+16
  • Skilled Expert
  • 951 replies
  • July 6, 2022

I think we are referencing a similar question in the following thread:

https://community.freshworks.com/freshservice-11247/orchestration-ad-fields-job-title-and-location-23399

My guess is that the same issue is present in both cases, missing a necessary attribute as a default field. I would suggest raising this with the support team using support@freshservice.com to get this to the product team for assessment.


  • Community Debut
  • 1 reply
  • May 22, 2024

HI,

 

I know this is very late, but this info might help someone else.

We ended up using this under custom attributes which worked a treat as it was failing in the default set.

Adjacent to this issue, we needed officeLocation as well, it didn’t like it if we had special characters in the source data.

{
"officeLocation": {{ticket.onboarding_request.actor_1.cf_location}},
"CompanyName":{{ticket.onboarding_request.actor_1.cf_company}}
}

 

For example, if we had an officeLocation of ‘Vista, London’ - it failed due to the comma.

So by putting quotes around the placeholder, it formatted properly. Hope this helps somebody else.

{
"officeLocation": “{{ticket.onboarding_request.actor_1.cf_location}}”,
"CompanyName":{{ticket.onboarding_request.actor_1.cf_company}}
}


  • Community Debut
  • 3 replies
  • May 22, 2024

I think you can use the `extensionAttributes` field in your payload. Since the default Create User action does not include Office Location, you need to add it as a custom attribute, a simple example of how to include it in your JSON payload:

```json
{
  "displayName": "{{ticket.onboarding_request.actor_1.name}}",
  "mailNickname": "{{ticket.onboarding_request.actor_1.email}}",
  "userPrincipalName": "{{ticket.onboarding_request.actor_1.username}}",
  "accountEnabled": true,
  "passwordProfile": {
    "password": "{{ticket.onboarding_request.actor_1.password}}",
    "forceChangePasswordNextSignIn": false
  },
  "extensionAttributes": {
    "physicalDeliveryOfficeName": "{{ticket.onboarding_request.actor_1.cf_location}}"
  }
}
```

Make sure to replace `{{ticket.onboarding_request.actor_1.cf_location}}` with the correct variable from your workflow that holds the Office Location data.