SAP / gigya-android-sdk

SAP CDC (Gigya) android sdk for mobile
Apache License 2.0
19 stars 13 forks source link

How to set isActive throughout SDK? #36

Closed MarlonAEC closed 2 years ago

MarlonAEC commented 2 years ago

Hi, I was wondering if there is a way to disable a user account (like set isActive to false or some other way) throughout the SDK. I was digging into the docs and I found this link about setting the isActive field using the accounts.setAccountInfo REST endpoint but it said:

This parameter allows disabling the account. This is only permitted when calling this method from server-side, attempting to disable an account from a client SDK will return an error.

so my question: Is there another way to do this using the SDK?

tal-mi commented 2 years ago

I am afraid not. Much like the "delete account" option, this is only reserved for a server-to-server communication by design. You can create a mediator call using a 3rd party server that is implementing one of our server SDKs to achieve this.