Hi,
I need to set up an automation allowing users to delete their account from Webflow.
On Webfloiw I made a form that sends a webhook to make. I have the user’s email in this webhook who wants his account deleted. Unfortunately, in order to remove the user from the site via the API, I need his ID number. Email alone is not enough.
{
"users": [
{
"id": "6287ec36a841b25637c663df",
"isEmailVerified": false,
"lastUpdated": "2022-05-20T13:46:12.093Z",
"createdOn": "2022-05-20T13:46:12.093Z",
"status": "unverified",
"accessGroups": [
{
"slug": "webflowers",
"type": "admin"
}
],
"data": {
"accept-privacy": false,
"accept-communications": false,
"email": "Person.One@home.com",
"name": "Person One"
}
},
{
"id": "6287ec36a841b25637c663f0",
"isEmailVerified": false,
"lastUpdated": "2022-05-19T05:32:04.581Z",
"createdOn": "2022-05-19T05:32:04.581Z",
"status": "unverified",
"accessGroups": [
{
"slug": "webflowers",
"type": "admin"
}
],
"data": {
"accept-privacy": false,
"accept-communications": false,
"email": "Person.Two@home.com",
"name": "Person Two"
}
},
],
"count": 5,
"limit": 5,
"offset": 0,
"total": 201
}
I therefore ask Webflow API for all registered users. In return, I get all their data (with ID also). I can then compare and search for a user with a specific email address to find out their ID number.
How do this search/comparison in make?