Removes signups from the whitelist, so those identities can no longer register.
π‘ Removing from the whitelist does not ban anyone β it only revokes the allow entry. To block an identity, add it to the blacklist.
Request
method is "removeFromWhitelist".Field | Type | Required | Description |
signups | Yes | The signup identities to remove. | |
app_id | String | Yes | The app the whitelist belongs to. |
reference | String | Yes | Your id for this request. Echoed back in the response. |
Preconditions
Requirement | Why |
"Signup Management" permission | Needed to manage whitelist and blacklist. |
User Whitelist enabled | Turn on the Use Whitelist flag under Web Admin β Signup Settings β Signup Filter, or filtering is not enforced. |
π This feature is limited to apps created with the nandbox app builder.
Response
removeFromWhitelist_ack
Field | Type | Returned | Description |
method | String | Yes | "removeFromWhitelist_ack" |
signups | Yes | The signups that were removed. | |
app_id | String | Yes | Echoed from the request. |
reference | String | Optional | Echoed from the request. |
SDKs
SDK | Call | Callback |
Java | api.deleteWhiteList(users, appId, reference); | onDeleteWhiteList(WhiteList whiteList) |
JavaScript | api.deleteWhiteList(users, appId, reference); | onDeleteWhiteList(whiteList) |
Python | napi.delete_white_list(users=users, app_id=app_id, reference=reference) | on_remove_white_list(self, white_list) |
Example
Request
json{ "method": "removeFromWhitelist", "app_id": "90090684293000559", "reference": 111111148, "signups": ["name@example.com"] }
javaList<String> users = new ArrayList<>(); users.add("allowed@gmail.com"); api.deleteWhiteList(users, "90090684293000559", "111111148");
javascriptlet users = ["allowed@gmail.com"]; api.deleteWhiteList(users, "90090684293000559", "111111148");
pythonusers = ["allowed@gmail.com"] napi.delete_white_list(users=users, app_id="90090684293000559", reference="111111148")
Response
json{ "method": "removeFromWhitelist_ack", "app_id": "90090684293000559", "reference": 111111148, "signups": ["name@example.com"] }