D
D
Dmitry Bondarchuk2020-09-11 04:45:19
1C-Bitrix
Dmitry Bondarchuk, 2020-09-11 04:45:19

How to add or remove user groups from a user on an event?

One user can have several partners. Each counterparty has several user groups. For these user groups, discounts are set that imitate price types (a crutch, but it happened with 1C).

It is required that when a user selects a counterparty, his user groups change.

I found this method https://dev.1c-bitrix.ru/api_help/main/reference/c...
But user groups will be applied only at the next authorization. Is there any way to bypass this limitation and change user groups of an authorized user?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Bondarchuk, 2020-11-27
@scotch18

Don't trust Bitrix. SetUserGroup Gets up at once.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question