# IRPCLicenseManagement.GetLicenseUsage

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Administration API](https://developer.m-files.com/APIs/gRPC-API/admin/index.md) > [License management](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLicenseManagement/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLicenseManagement/GetLicenseUsage/

Badges: `Administration API / specialized` `admin` `session` `idempotent`

Gets how many named, concurrent and read-only user licenses are in use.

- **Service:** [License management](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLicenseManagement/index.md) `MFiles.IRPCLicenseManagement`
- **gRPC method:** `/MFiles.IRPCLicenseManagement/GetLicenseUsage`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/get-license-usage`
- **Request:** [`GetLicenseUsageRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLicenseManagement/GetLicenseUsage/index.md#request)
- **Response:** [`GetLicenseUsageResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLicenseManagement/GetLicenseUsage/index.md#response)
- **Book and level:** Administration API, specialized
- **Kind:** admin
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** yes
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

- Requires the system administrator server role (server right `manage_licenses`). Denied for a
  vault administrator in a vault session on a server with a server license.
- On servers that license each vault through M-Files Manage, a vault session of a vault
  administrator gets the usage of that vault instead.

<a id="request"></a>

## Request: GetLicenseUsageRequest

No fields.

<a id="response"></a>

## Response: GetLicenseUsageResponse

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `num_of_named_user_licenses_in_use` | `uint32` | Receives the number of named user licenses in use. |
| `num_of_concurrent_user_licenses_in_use` | `uint32` | Receives the number of concurrent user licenses in use. |
| `num_of_named_read_only_user_licenses_in_use` | `uint32` | Receives the number of read-only user licenses in use. |
