---
title: "ApplicationUser interface"
canonical: "https://support.appfire.com/space/JMWE/461472599/ApplicationUser%20interface"
format: markdown
---
> Macro (aura-html)

This document details the methods of the` `[ApplicationUser](https://developer.atlassian.com/static/javadoc/jira/reference/com/atlassian/jira/user/ApplicationUser.html) interface you can use on any ApplicationUser, such as those returned by the [Getters](https://appfire.atlassian.net/wiki/spaces/JMWE/pages/461537562) when you access users such as Reporter, Assignee, a Watcher of the issue etc.

> ⚠️ :green_star: denotes a method that is specific to JMWE

#### Getters

| **Method** | **Return type** | **Returns** |
| --- | --- | --- |
| [equals](https://developer.atlassian.com/static/javadoc/jira/reference/com/atlassian/jira/user/ApplicationUser.html#equals(java.lang.Object))`(`[Object](http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html)` obj)` | [Boolean](http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Boolean.html) | True if and only if the object represents the same user |
| [getDirectoryId](https://developer.atlassian.com/static/javadoc/jira/reference/com/atlassian/jira/user/ApplicationUser.html#getDirectoryId())`()` | [Long](http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Long.html) | The ID of the user directory that this user comes from. |
| [getDisplayName](https://developer.atlassian.com/static/javadoc/jira/reference/com/atlassian/jira/user/ApplicationUser.html#getDisplayName())`()` | [String](http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html) | Display name of the user, must never be null. |
| [getEmailAddress](https://developer.atlassian.com/static/javadoc/jira/reference/com/atlassian/jira/user/ApplicationUser.html#getEmailAddress())`()` | [String](http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html) | Email address of the user. |
| `getEntityProperty(String propertyName)`` `:green_star: | [Object](https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html)` ` | <span style="color: #091e42">The value of the specified Entity property of the user, parsed into a Groovy object.</span> |
| [getKey](https://developer.atlassian.com/static/javadoc/jira/reference/com/atlassian/jira/user/ApplicationUser.html#getKey())`()` | [String](http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html) | The key which distinguishes the ApplicationUser as unique. |
| [getUsername](https://developer.atlassian.com/static/javadoc/jira/reference/com/atlassian/jira/user/ApplicationUser.html#getUsername())`()` | [String](http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html) | The username (login) of the user; must never be `null`. |
| [isActive](https://developer.atlassian.com/static/javadoc/jira/reference/com/atlassian/jira/user/ApplicationUser.html#isActive())`()` | [Boolean](http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Boolean.html) | True if this user is active |
| `isInProjectRole(`[<span style="color: #222222">String</span>](http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html)` projectRoleName, `[<span style="color: #222222">Project</span>](https://appfire.atlassian.net/wiki/spaces/JMWE/pages/78056621)` project) `:green_star: | `boolean` | Returns `true` if this user is in the specified project role in the specified project. For example:<br>`currentUser.isInProjectRole("Developers", issue.get("project"))`<br><span style="color: #003366">returns </span>`true`<span style="color: #003366"> if the current user belongs to the "Developers" project role in the current issue's project.</span> |
| `getUserProperty(`[String](http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html)` ``propertyName``) `:green_star: | [String](http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html) | <span style="color: #000000">Returns the value of the specified User Property of the user.</span><br>> ⚠️ <span style="color: #000000">This method returns User Properties that are defined on the Edit User Properties Jira admin page. These are </span>*different*<span style="color: #000000"> from the Entity Properties that can only be set and read programmatically (see the Set/Get/DeleteEntityProperty methods).</span> |
| `isInGroup(String groupName)`` `:green_star: | [Boolean](http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Boolean.html) | <span style="color: #000000">Returns true if this user is in the specified </span> |

#### Setters

| **Method** | **Return type** | **Returns** |
| --- | --- | --- |
| `setEntityProperty(String propertyName, Object value)`` `:green_star: | [void](https://docs.oracle.com/javase/7/docs/api/java/lang/Void.html) | <span style="color: #091e42">Sets the value of the specified Entity property of the user to a JSON representation of the specified value.</span> |
| `setEntityPropertyToJsonString(String propertyName, String jsonString)`` `:green_star: | [void](https://docs.oracle.com/javase/7/docs/api/java/lang/Void.html) | <span style="color: #091e42">Sets the value of the specified Entity property of the user to the specified JSON string.</span> |

#### Deleters

| **Method** | **Return type** | **Returns** |
| --- | --- | --- |
| `deleteEntityProperty(String propertyName)`` `:green_star: | [void](https://docs.oracle.com/javase/7/docs/api/java/lang/Void.html) | <span style="color: #091e42">Deletes the specified Entity property of the user.</span> |