Disabling Profile Picture Sync in Profile Sync Job

Table of Contents

By default, the profile sync job sets KanBo users’ profile pictures to the ones in their M365 profiles. Follow these steps to remove this step from the job.

Change the appsettings.json of the job:

  1. Navigate to the folder of your job. On Azure, the folder should be located in: C:\home\site\wwwroot\App_Data\jobs\triggered\ProfileSync.
  2. On the appsettings.json file, select Edit.

You should see a section that looks like this:

JSON
				{
    "type": "package",
    "name": "webjob.profile-sync",
    "thumbprint": "THUMBPRINT",
    "kanbo-url": "URL"
   }
			
  1. Copy the thumbprint and URL.
  2. Then, change that section to this:
JSON
				{
   "type": "package",
   "name": "kanbo-api",
   "url": "URL",
   "thumbprint": "THUMBPRINT"
  },
  {
   "type": "job.profile-sync",
   "name": "profiles"
  },
  {
   "type": "profiles-provider.graph",
   "children": [
    [
     "mapping",
     {
      "graph": "responsibilities",
      "kanbo": "AskMeAbout",
      "type": "string[]",
      "separator": ", "
     }
    ],
    {
     "type": "mapping",
     "graph": "aboutMe",
     "kanbo": "AboutMe"
    },
    {
     "type": "mapping",
     "graph": "mail",
     "kanbo": "Email"
    },
    {
     "type": "mapping",
     "graph": "givenName",
     "kanbo": "Name"
    },
    {
     "type": "mapping",
     "graph": "surname",
     "kanbo": "Surname"
    },
    {
     "type": "mapping",
     "graph": "mobilePhone",
     "kanbo": "Phone"
    }
]
}
			
  1. Change the URL and thumbprint to the values you had before.
  2. Select Save.

Starting now, your M365 profile picture will no longer be synced with your KanBo profile picture.

Was this article helpful?

Please, contact us if you have any additional questions.