---
title: "getOrganizationNameById (Power Scripts)"
canonical: "https://support.appfire.com/space/PSJ/15483959/getOrganizationNameById%20(Power%20Scripts)"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getJSDCommentPrivacy() | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

> ❌ Only the admin or a customer from the organization can view the organization.

## Description

> Macro (excerpt)
> 
> Gets the Jira Service Desk organization by the Id.

Gets the Jira Service Desk organization by the Id.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| Organization Id | Number | Yes | Returns null if the organization can not be found. |

## Return Type

**String**

The returned value is the privacy of the comment entered on the transition screen.

## Example

```
return getOrganizationNameById(101);
```

Result: The string "Test Organization" will be return.

## See also

> Macro (contentbylabel)