You are viewing limited content. For full access, please sign in.

Question

Question

Updating Client Secret for ALL LF Email Archiver Profiles with Microsoft 365 OAuth 2.0

asked on October 8, 2024

Has anyone had any luck with finding a way to mass change the Client Secret for all Profiles in the LF email archiver?

 

It will be tedious to manually update each profile every 1-2 years when the secret expires

Screenshot 2024-10-08 111108.png
0 0

Answer

APPROVED ANSWER
replied on October 9, 2024

The profiles of email archive are XML files, in general, people can open all profiles with text editor (such as notepad++), and mass update the configuration of profiles.

Specifically for updating client id and client secret

  • stop the email archive service first
  • backup all original profiles in C:\ProgramData\Laserfiche\EmailArchiveService\Profiles to C:\ProgramData\Laserfiche\EmailArchiveService\Backups
  • open email archive config to edit clientid and clientsecret of a profile, profile A for example, and save
  • open profile A in C:\ProgramData\Laserfiche\EmailArchiveService\Backups with text editor to get the old value of ClientId and ClientSecret in <ImapServerSettings>. 
  • open profile A in C:\ProgramData\Laserfiche\EmailArchiveService\Profiles with text editor to get the new value of ClientId and ClientSecret in <ImapServerSettings>. 
  • open all profiles in C:\ProgramData\Laserfiche\EmailArchiveService\Profiles, replace all old values with new values in all XML files, and save
  • restart the service
1 0

Replies

replied on October 9, 2024

I have the same issue. It would be great if you could select multiple profiles and select to update credentials and do them all at once.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.