> For the complete documentation index, see [llms.txt](https://dansteren.gitbook.io/cordova-plugin-gotenna/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dansteren.gitbook.io/cordova-plugin-gotenna/api/userdatastore.md).

# UserDataStore

This set of methods was created because they exist in the native SDK. However, they are not entirely helpful in a javascript context (with the possible exception of saveCurrentUser). These methods all work together to store one instance of the User class and provide methods for adding, editing, and removing that user. This is probably an ok model in Java, but in JavaScript you would likely be better served, directly using the exposed User class instead.

{% hint style="info" %}
Note: Despite the common functionality of these methods, they are not grouped in a sub class or property of gotenna. Instead they are exposed directly on the root gotenna class.

e.g. `window.gotenna.addGroupGID(12345)`
{% endhint %}

## Methods

{% content-ref url="/pages/-LK21EkLB3hhz2f7qFVe" %}
[addGroupGID](/cordova-plugin-gotenna/api/userdatastore/addgroupgid.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LK21JduQRCImg4IHAEU" %}
[addMulticastGroupGID](/cordova-plugin-gotenna/api/userdatastore/addmulticastgroupgid.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LK21OFmMYst7u9Lkwa-" %}
[deleteCurrentUser](/cordova-plugin-gotenna/api/userdatastore/deletecurrentuser.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LK21S62P4jm1OtBm-0\_" %}
[deleteGroupGID](/cordova-plugin-gotenna/api/userdatastore/deletegroupgid.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LK21VqaGuRlz2VugMFM" %}
[deleteMulticastGroupGID](/cordova-plugin-gotenna/api/userdatastore/deletemulticastgroupgid.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LK21bTEQrRlabKIB4Ks" %}
[getCurrentUser](/cordova-plugin-gotenna/api/userdatastore/getcurrentuser.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LK21kmq8M9YLg7-0L-0" %}
[hasGroupGID](/cordova-plugin-gotenna/api/userdatastore/hasgroupgid.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LK21pIVquAhQwZgMe5B" %}
[hasMulticastGroupGID](/cordova-plugin-gotenna/api/userdatastore/hasmulticastgroupgid.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LK21t33sz3NFPROWyOx" %}
[hasValidUser](/cordova-plugin-gotenna/api/userdatastore/hasvaliduser.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LK21vdNgllZeJYX-Hn3" %}
[isMyGID](/cordova-plugin-gotenna/api/userdatastore/ismygid.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LK21z7yk8FujitbZiZN" %}
[registerUser](/cordova-plugin-gotenna/api/userdatastore/registeruser.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LK223WEgxON4yum\_edP" %}
[saveCurrentUser](/cordova-plugin-gotenna/api/userdatastore/savecurrentuser.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LK227q-M8G\_yASii1ff" %}
[setCurrentUser](/cordova-plugin-gotenna/api/userdatastore/setcurrentuser.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LK22AWxt932f1S0qAeZ" %}
[updateLastConnectedTime](/cordova-plugin-gotenna/api/userdatastore/updatelastconnectedtime.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LK22DLLyoQaeFvVdMAF" %}
[updateLastLocation](/cordova-plugin-gotenna/api/userdatastore/updatelastlocation.md)
{% endcontent-ref %}
