---
title: "userHasServiceDeskAccess"
canonical: "https://support.appfire.com/space/PSJ/15484755/userHasServiceDeskAccess"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | userHasServiceDeskAccess(username) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Verifies if a user has access to the Jira Service Desk application.

Verifies if a user has access to the Jira Service Desk application.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| username | String | Yes | Username of the user that is being checked. |

## Return Type

**Boolean**

A "true" return value means that the user has access to Jira Service Desk.

## Example

```
return userHasServiceDeskAccess("jsmith");
```

Returns "true" if the user has access.

## See also

> Macro (contentbylabel)