---
description: >-
  This section helps admin set-up geo tagging for users and configure the
  geo-fencing as well for users to be able to login only from a pre-configured
  location as per the business requirements.
---

# Geo Tagging and Fencing

1. &#x20;Use Case:
   1. The admin should be able to configure the geolocation based parameters to restrict or allow login.
   2. Users should be prompted to enable location permissions in the browser or device.
   3. When trying to login from a login-restricted location, the user should receive a notification of the attempt.
2. Pre-requisites:
   1.

       1. The user should already exist.
       2. Email should be already configured.


3. &#x20;Configuration
   1. Create a new execution flow
      1. Login to the ZTrust admin console.Go to the ‘Groups’ tab on the right and create a group, for ex. bhubaneswar.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf1vKK15esA5Oi8XBXYU4sq5b0ixCeawi7QIg0kAjdSe6ZaYecj1lynb2qHngRxtFqmMbkEo471Pilv7_FnV0yFCrfIw_EdkJGLUGukzBAvMQgueWi6o3XdSLZ2Jq-dCEfdO4I--2f8xVXTM771oMA2DopJ?key=t5UY0eS5fZgzSvp7GNmj1g" alt=""><figcaption></figcaption></figure>

\


3. Click on the group, click on \`Attributes\` and create four attributes, namely, \`latitude\`, \`longitude\`, \`radius\_value\` and \`radius\_units\`. Give them the appropriate values, for ex. latitude = 20.3491338; longitude = 85.8070446; radius\_value = 100; radius\_units = m. Possible values of \`radius\_units\` are “m” for metres, “km” for kilometres, “ft” for feets, “mi" for miles.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeyZzQFATLzLwLjsnMsSbyBS8h6mx2z_bWKLgz4vq43r7Gj1FnHS1IOsc446u5NbDkKNlNS8UStEw3ozkCz2rSHyznv4r1neL8S1zyEydCVlkN6eBsoFzyp7t6xvOih3zhh6Ydj5uQiom6Z0pqwcE9NkUw2?key=t5UY0eS5fZgzSvp7GNmj1g" alt=""><figcaption></figcaption></figure>

\


4. Now, add the user/users to the group to allow or restrict their login based on geolocation.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdx_b-F9Bg_k9GXvHQmQgdpnK93LLde1CnLC6ScRvIJD6OmteQwGvzXaIlDXs5Ta2glqOdFmlyb2TvMyNSw3YB-e7WzkNMGkXVg06k6loftng6srQNCpEa50mqLL56CpnR7FzqmVY3G0BenmgmUa679n4A?key=t5UY0eS5fZgzSvp7GNmj1g" alt=""><figcaption></figcaption></figure>

\
