cancel
Showing results for 
Search instead for 
Did you mean: 

How to withdraw consent

krishnakumar_1712
Participant
0 Kudos

Hi Team,

This is related to consent management.

We have a scenario where user is allowed to withdraw consent and We are not using screensset here.

We would like to Withdraw the consent via API. Can anyone help me with how can we achieve it via API?.

I tried with account.setAccount by passing parameter: preferences as below

{"privacy": {"test_privacy_policy": {"isConsentGranted": false}}}

But it is throwing an error.

Please help me.

Regards,

Eldhos

Accepted Solutions (0)

Answers (3)

Answers (3)

olehi941
Active Participant

Hi Eldhos,

You have got an error not because of using API or wrong syntax.

The reason why the error throws is that you are trying to withdraw a required(mandatory) Consent.
From CDC's perspective, Privacy Policy and Terms of Service are always required.
It means, once the user was registered and granted PP and ToS, they cannot be revoked. The only way to withdraw these Consents is to delete the user from CDC(If you delete the user and navigate to Consent Vault you will see that Consents were withdrawn).

So, if you need to withdraw the Consents and keep the user in CDC, you should create Other Consents and make them as Not Required(Not Mandatory) to have a possibility to withdraw(revoke) them.

Hope it helped you.

Hi Eldhos,

By design, consent statements under "Terms of Service" and "Privacy Policy" cannot be revoked once granted.

Only consent for "Other" statements and communication preferences may be revoked.

Thank you.

Best regards,
Joshua

Kunal_Bansal
Active Contributor
0 Kudos

Hi eldhos,

Could you please confirm how are you making the APIs calls, are you using SDKs?

If it was the screenset, consent management becomes very easy!

Thank you.

Best Regards,

Kunal Bansal, SAP CX Architect