> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# License

> Deprecated in 7.1.

Deprecated in 7.1.

## Constructors

### License()

```crmscript theme={null}
License
```

Deprecated in 7.1.

### License(String,String)

```crmscript theme={null}
License(String host, String license)
```

Deprecated in 7.1.

## Methods

## getInfo()

Deprecated in 7.1.

Gets info about license key. Checks if its legal and print hostname and modules.

```crmscript theme={null}
String getInfo()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String)

## getReasonInvalid()

Deprecated in 7.1.

Checks if the license key is valid and returns the reason as a string.

```crmscript theme={null}
String getReasonInvalid()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Reason why not valid or null string if valid.

## getValue(String)

Deprecated in 7.1.

Extracts a value from the license key.

```crmscript theme={null}
String getValue(String name)
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String)

<Note>
  Available values:

  * users
  * The number of users
  * simUsers
  * The number of simultaneous users
  * readUsers
  * The number of read users
  * simReadUsers
  * The number of simultaneous read only users
  * companyId
  * ID of the company owning the key. (Only relevant internal use)
  * expire
  * Expire date
  * key
  * The license key as a text string
</Note>

## legalKey()

Deprecated in 7.1.

Determines if a license key is legal or not.

```crmscript theme={null}
Bool legalKey()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - True if the key is legal.

## toParser(Parser)

Deprecated in 7.1.

Fills a Parser object with License values.

```crmscript theme={null}
toParser(Parser parser)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)


## Related topics

- [Hidden licenses](/en/admin/license/dev/hidden-licenses.md)
- [Module licenses](/en/admin/license/dev/module-licenses.md)
- [Partner licenses](/en/admin/license/dev/partner-licenses.md)
- [Get License From License Server](/en/api/reference/restful/agent/license_agent/get-license-from-license-server.md)
- [Activate license](/en/admin/license/activate.md)
- [Get License From D B](/en/api/reference/restful/agent/license_agent/get-license-from-d-b.md)
