Get User Geolocation node
The Get User Geolocation node retrieves the user's geolocation (latitude and longitude) using the browser, IP, or fallback to IP if browser access is denied.
This node is available in: Authentication, Admin, Self Service, Custom, User Defined
Node configurations
It is possible to retrieve the geolocation (latitude, longitude) based on 3 selectable options:
- From the User's Browser
- From the IP
- Fallback to the IP address if the user denies browser location access
User binding configurations
This section allows you to configure how the user is bound to the session.
A dedicated flag allows saving the retrieved information into the database for the user.
Username
You can bind the user either by username or by a specific attribute. In both cases, the corresponding value must be specified (can use a variable from the form node, e.g {{form.username}}).
An additional Ignore case option is available to perform the binding without considering letter case differences.
Save in the flow store
Attributes generated or retrieved from the node can be saved into a variable.
They can then be reused by other nodes in the flow by referencing them as {{variable.attribute}}.
To do this you choose attributes that need to be stored in the variable, and in the flow store (All attributes exposed by the node are listed in a multi-select dropdown, allowing the user to choose one or more of them), then a variable name that can be freely defined by the user.
There is also a flag to make the variable available to the frontend.
Default output node
- Success
- Failure
JSON metadata
{
"name": "geolocation",
"active": true,
"bundleName": "am-users-nodes",
"bundleVersion": "1.0",
"category": "user_agent_components",
"deprecated": false,
"displayName": [{
"lang": "en",
"value": "Get User Geolocation"
}, {
"lang": "it",
"value": "Get User Geolocation"
}
],
"flowCategory": [
"custom",
"admin",
"auth",
"self"
],
"nodeName": "Geolocation",
"index": 6,
"inputs": [{
"name": "Input"
}
],
"outputs": [{
"name": "Success",
"level": "success"
}, {
"name": "Failure",
"level": "error"
}
]
}