Skip to content

Urs Meli's Blog

Mostly harmless

  • Connections
  • Domino
  • About Me
9. July 2025 Connections

Remove Test User from Connections

Posted by umeli

I’ve been doing some tests with keycloak and automatic provisioning of users in HCL Connections.
Basically the user opens HCL Connections and gets redirected to the keycloak login page.
On that page we have 2 options: regular login for Guests or Login through MS Entra/or other IDP.

If a user chooses MS Entra and he has not been provisioned in HCL Connections, the user will get an unpleasant error. And a crippled entry is in our database, which prevents any further login unless it’s cleaned.

Our HCL Connections servers run in a private cloud. Using SDI is not an option here to provision the users in our HCL Connections environments.

During the development of the new process, I ran a lot of tests. Resulting in a lot of test users. And testing with a productive MS Entra instance, there are only a limited amount of test accounts.

To have a more sustainable testing process I had to clean the test accounts.

Step 1: Delete the account from Keycloak/LDAP
Apache DS does a good job.

Step 2: Delete the profile form HCL Connections
Using wsadmin I’m able to deactivate a profile ( ProfilesService.inactivateUser ) but removing a user completely?
The only way, without SDI, is to use the Profiles Admin API

var UserManager = {
options: {
method: 'delete',
credentials: 'include',
headers: {
"Content-Type": "application/atom+xml"
}
},
deleteUsers: function (users) {
users.forEach(UserManager.doDeleteUser);
},
doDeleteUser: async function (id, index) {
if (!id) {
return;
}
const url = `/profiles/admin/atom/profileEntry.do?userid=${id}`;

const response = await fetch(url, UserManager.options);
if (response.ok) {
console.log(`${index}: ${id}: Success`);
} else {
console.log(`${index}: ${id}: failed`);
}
}
}
UserManager.deleteUsers(["94cff9ac-07a6-47bb-b140-9898a63d768e","66df3530-0235-4017-ab74-379fad4c4cf0"])

With this dangerous script it’s possible to remove multiple test accounts in one go. The function “UserManager.deleteUser” requires an array of ProfGUID’s as parameter. Prepare the script in your favorite editor and copy&paste it into your favorite browsers WebDeveloper console.

You need to be logged into HCL Connections as an admin user.

Caution: There’s no trash. HCL Connections will erase all traces from those users, across all apps. If the user has files, files shared with communities, all those will be erased too.

Disclaimer: Use at your own risk !

accountcnxcnx8Connectionsdeleteprofiles

Post navigation

Previous Post

Highlight a highlight widget

Next Post

Fun time with kubernetes and dns

Archives

  • September 2026
  • May 2026
  • March 2026
  • July 2025
  • June 2025
  • February 2025
  • January 2025
  • November 2024
  • August 2024
  • December 2023
  • September 2023
  • June 2023
  • May 2023
  • April 2023
  • February 2023
  • January 2023
  • December 2022
  • October 2022
  • June 2022
  • February 2022
  • December 2021
  • November 2021
  • August 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • January 2020
  • December 2019
  • November 2019
  • May 2019
  • March 2019
  • February 2019
  • December 2018
  • October 2018
  • September 2018
  • August 2018
  • December 2017
  • October 2017
  • August 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • August 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015

Tags

account alma 9 aloha angular api cnx cnx7 cnx8 component-pack componentpack Connections connections7 connections8 coredns delete dns docs docs 2.0.2 domino engage 2023 haproxy hcl hcl connections inplace internet explorer k8s kubernetes libcrypt libcrypt.so.1 login form note-to-myself nslookup paraglide paragliding personal profile profiles sametime shorts tag tags touchpoint update widget widgets

Categories

7 10 ambassador Collabora component pack Connections docs Domino dql java keycloak linux Note-to-myself paragliding personal pink sdi tdi Uncategorized Windoze
WordPress Theme: Maxwell by ThemeZee.