# Anonymous User

Anonymous user is a built-in user account, which has been designed for unauthorized access to video streams via HTTP API - a very basic example of Macula API usage.

Briefly, here is the procedure that enables you to get video via link:

1. Enable Anonymous user
2. Grant them permission(s) to view live channel(s)
3. Enable resource IDs in the Macula Console settings
4. Look up server IP and port, and channel ID to form the link

The procedure is described in more details below.

The anonymous user is disabled by default and does not have any permissions. In order to allow HTTP access:

* **enable** the anonymous user: double-click him in the user list, mark him as active, then save;
* **add** the *View live video* **permission** for this user in the properties of the target channel(s).

<figure><img src="https://412599993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeNXnJx0OpvxnmpWqOBNm%2Fuploads%2FGkZX3tUf0wiLoCsoEpJs%2Fimage.png?alt=media&#x26;token=f1fdc395-b80c-4944-9f98-a44cfa0edfe6" alt=""><figcaption></figcaption></figure>

Now you can use a short link to receive live video feed over HTTP from your configured channels without authorization.

<figure><img src="https://412599993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeNXnJx0OpvxnmpWqOBNm%2Fuploads%2Fz1O3nORsl3ZBDGvSBymN%2Fimage.png?alt=media&#x26;token=c12c26fb-9dda-4562-9bd6-6afb37894b15" alt=""><figcaption></figcaption></figure>

The link can be embedded, for example, into your own webpage to provide 'Live Cam' functionality.

{% hint style="info" %}
HTTP **link** is built as follows:

* *IP:PORT/publicLive/\<channel\_id>/mainStream*

where

* *IP* is server IP address or hostname,
* *PORT* is server HTTP port (8080 by default),
* *\<channel\_id>* is internal channel identifier, which can be looked up in Macula Console when IDs are enabled in the application settings.

Example: *192.168.1.83:8080/publicLive/184/mainStream*
{% endhint %}

{% hint style="danger" %}
This functionality requires that Streaming Server is enabled (HTTP port is not set to zero in the target server settings).
{% endhint %}

In order to see the channel identifiers in Macula Console, go to the application settings via main menu button in the upper-right-hand corner and choose *Settings*. In the dialog box, enable the *Show object IDs* option and save.

<figure><img src="https://412599993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeNXnJx0OpvxnmpWqOBNm%2Fuploads%2FV7yIMjlnAsSDxfmhxD3Y%2Fimage.png?alt=media&#x26;token=4d89abb1-bd94-4c28-9bb8-49b51456e20a" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="danger" %}
Starting with Macula Console version 1.25, you can also use all the available permissions for the *Anonymous* user.
{% endhint %}

To add custom permissions to Built-in Anonymous user:

1. Go to *Configuration -> Users -> Anonymous* and double-click on it or click the *Edit* button.
2. Select *Resources* from the left menu and use the *Permissions* tab as with any other user.

Read more on how to manage *Permissions*.
