Home > Forum > General > Add user to bps group action: Times out in synchronous mode

Add user to bps group action: Times out in synchronous mode
0

MVP

Hi everyone,

maybe someone of you has a guess what we can do.

- We have an environment with 6 content databases
- We have a process which manages the members of a BPS group.
- We use the Add/Remove single user to BPS groups to add a single user in synchronous mode (1)
- Even so the action times out after 50 seconds it's marked as completed successfully in the history (2)
- The duration of the corresponding synchronization of took about 2 minutes (3)
- According to the 'Details' the synchronization took 9 seconds. Started at 33:46 and ended 33:55 (4)


The big question is why does the individual synchronization take 2 minutes to complete.

MVP

I overlooked something.
The action triggers the synchronization of the group and afterwards the synchronization of the added user. This started a download from Azure AD which causes the delay.
- (7/2/2024 2:33:46 PM) Step started: Download selected objects from Azure AD if required
- (7/2/2024 2:35:44 PM) Step completed: Download selected objects from Azure AD if required (duration: 118687 ms)

What's interesting is that changing the group members via the Portal creates only one synchronization job /entry.

Improving the download from Azure AD is probably not possible, so we will have to cope with this.

MVP
In reply to: Karol Częczek

Hi,

Why it takes so long I don't know, but for this reason I use the api method to add a user to a group.

/api/data/v5.0/admin/group/members/add

It works fast and performs synchro of all DB_Content databases

Regards.

Hi Karol,

I have thought about it and also making the action asynchronous. It should work in theory but I'm having second thoughts about it because of a theoretical problem.
If the synchronization doesn't finish before the workflow instance is updated again, the user may get added twice to the BPS group.

It's probably not a real issue and I may decide to change the current configuration.

Best regards,
Daniel