Best Answer

User creation using Docebo Connect

  • 16 July 2023
  • 2 replies
  • 75 views

Hello to all

We want to use Docebo connect to create new users from other systems we have,
As part of it we need to set the user’s branch, but Docebo Connect expect me to provide the Branch ID
I do not want to hard-coded it in the integration, 

What is the best practice or other options to set the Branch of a user?

How do you manage it in your organization?
 
Thank you all

icon

Best answer by nbrandes 27 July 2023, 09:55

View original

2 replies

Userlevel 3

We are not using Docebo Connect, but we are using the API endpoints. Here a suggestion:

  • Make sure the information from your external system is mapped to the branch code in Docebo.
  • Get the branch id using this endpoint (including the parameter): /manage/v1/orgchart/{branch_code}?use_secondary_identifier=true. Replace the “branch_code” with the information you would get from the external system.
  • Map the “idOrg” to your user creation workflow as branch id. In the API, this would correspond to  "select_orgchart": {"__branch_id__": 1}

I hope this helps! 😊

Found a solution or a workaround 
We change the type of in-app action that create the users from “Create user in Docebo” to “Create users in batch in Docebo” this why in it we have the option to map the branch name and not the branch ID

 

with the string of branch name of
branch 1/branch 2/branch 3 (for me “branch 3” is the Country)

 

Reply