cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Reset consent statement for the user

flukic
Explorer
609

Hi all,

I would like to ask for help and more information regarding the accounts.resetSitePreferences API request. We have tried using it, but it does not seem to work in our use case.

The use case is the following:

We have a Customer Portal that has no registration option. Users are created in Commerce Backoffice and then replicated to CDC via REST API. On the Customer Portal, we have the Terms and Conditions and Privacy Notice mandatory consents. Unfortunately, user creation via REST is not possible without specifying the consent object as well.

We would like to create the user and then reset the consent in order to prompt him for the re-consent flow upon his first login. Would this be somehow possible using this resetSitePreferences API request?

We have tried this, but the consent of the user is not reset - so we are not sure if we are doing something wrong. Maybe mandatory consent cannot be reset this way?

Consent statements are set as mandatory on the parent site (parent-child structure).

Thank you very much,

Filip

Accepted Solutions (1)

Accepted Solutions (1)

Hi Filip,

User creation via REST API without consents is possible, the consumer will be created in a "non-fully" registered state. Then, in the consumer next login, the error "Account pending registration" will be triggered and handled by the screen-sets will show the "Registration Completion" screen so the consumers can accept the missing consents and get logged-in.

Hope it helps,

Víctor

Answers (0)