Solved

Freshservice Onboarding - Custom Attributes & OU Automation

  • 8 September 2022
  • 12 replies
  • 731 views

Userlevel 2
Badge +2

Hello Community

I am new to Freshservice and managed to start using the Employee Onboarding via Orchestration.

Unfortunately, I tried all my best and failed to achieve below Tasks.

  1. Office & WebPage Field using Custom Attributes
  2. Created User Move to their respective OU based on the Department they selected when filling up the form

For Custom Attributes i tried all my best but didnt succeed and even got support from Freshservice - they are keep saying check your AD or with Microsoft.

Manual way through Powershell on native works.

Can any of you if experienced such help me out ?

This would really be helpful

Much Appreciated

Regards

icon

Best answer by zachary.king 16 September 2022, 15:06

View original

12 replies

Userlevel 6
Badge +8

@ayounkh123 custom attributes can be tricky and what I ended up needing to do is to try them one by one to make sure I got the syntax right. Also for your onboarding form is it a free text field or a drop down selection menu that you present to the one filling it out? 

Regarding the move user I think that may be an extra step not needed as you can define the OU that the user is created in using the Create User app action. Here is a sample of our custom attributes code that we have in our onboarding automation that populates data based on drop down and free form selections:

{"physicalDeliveryOfficeName": "{{ticket.ri_167_cf_division}}", "otherMobile": "{{ticket.ri_167_cf_personal_cell_number}}", "proxyAddresses": "SMTP:{{ticket.ri_167_cf_e_mail_address}}"}

Userlevel 7
Badge +16

Hello @ayounkh123, two great questions and @keefe.andrews has shown a great way to handle the custom attributes portion. Regarding filling in the Office field of an AD User, I have reached out to support to ask them to add that as an available field into the orchestration application. Word is that they are working on it.

To get the AD User you created into the correct OU, what we did, was create a custom object that has records with some fields needed for new hires, like Job Title, Domain, Cost Center, AD OU Path, and AD Groups. Then we reference those fields after reading in the record inside of workflow orchestration app nodes. So in the Create User app node for the field “Path" I can then reference the OU path from the record. When the user is created it drops them into that OU automatically.

Hope that helps!

Userlevel 2
Badge +2

@keefe.andrews Thanks for your quick response - I have tested this and it went fine :)

Userlevel 2
Badge +2

@zachary.king Thanks Zachary for your detailed explanation. I was already trying this Custom Object methods for Departments followed by AD OU path - Have used the Reader but unfortunately couldnt able to solve this for now.

Can you guide in which format you have defined the OU path ?

Mine you can see as attached - Maybe the format i am using is wrong ?

Thanks for your help on this

 

Userlevel 7
Badge +16

@zachary.king Thanks Zachary for your detailed explanation. I was already trying this Custom Object methods for Departments followed by AD OU path - Have used the Reader but unfortunately couldnt able to solve this for now.

Can you guide in which format you have defined the OU path ?

Mine you can see as attached - Maybe the format i am using is wrong ?

Thanks for your help on this

 

That format looks correct to me. It is similar to what we are using. If you were to copy the contents of that record and just hard code that into the Path field of “Create User” does it place the AD user in the correct location?

Userlevel 2
Badge +2

@zachary.king Well I have tried both steps even the create user and Move OU. It's doesn't move the user profile.

It would be helpful if you can share what kind of field and in which format you are using Custom Objects where you have linked the AD OU Path ?

Thanks again

Userlevel 7
Badge +16

@zachary.king Well I have tried both steps even the create user and Move OU. It's doesn't move the user profile.

It would be helpful if you can share what kind of field and in which format you are using Custom Objects where you have linked the AD OU Path ?

Thanks again

This is how we refer to the field in the Create User action Node

The reader node is simply associated to the correct custom object and then returns a result based on one of the object fields matching a value from the onboarding request

We have a conditional block after the reader node to check and make sure a custom object record was returned. From there we then can access the remaining Object Fields of that returned record, including AD OU Path.

My suggestion is make sure you have that conditional block there checking that the reader node returned a record. Then I would start with simply adding a note to a ticket that prints out the value you get when you reference the AD OU Path. This will insure you are sending the OU path in your “Create User” action node in the correct format.

Hope that helps.

Userlevel 7
Badge +16

Also @ayounkh123, if you were asking about the actual custom field object field, this is the type we use for AD OU Path

It is set to “Yes” for required, and “No” for Identity field.

Userlevel 2
Badge +2

Hello @zachary.king Thanks for your detailed feedback - I noticed your AD OU Path field is of Paragraph whereas my field is of Text - See Below

Do you think this is impacting my results ?

Userlevel 7
Badge +16

Hello @zachary.king Thanks for your detailed feedback - I noticed your AD OU Path field is of Paragraph whereas my field is of Text - See Below

Do you think this is impacting my results ?

It definitely could be. I have seen stranger things. So I would make that change and see if it works for you. 

Userlevel 2
Badge +2

Hi ALL 

Solved using Custom Object and adding a Reader Blog.

Thanks @zachary.king 

Userlevel 7
Badge +16

Hi ALL 

Solved using Custom Object and adding a Reader Blog.

Thanks @zachary.king 

Glad you were able to find a solution!

Reply