---
title: "Beanshell macro"
canonical: "https://support.appfire.com/space/SCRP/73728623/Beanshell%20macro"
format: markdown
---
> Macro (aura-html)


# Description

> Macro (excerpt)
> 
> Java scripting using [BeanShell](http://www.beanshell.org/home.html)

# Parameters

- See [Macro parameters](https://appfire.atlassian.net/wiki/spaces/SCRP/pages/73728435)

## Pre-defined variables

- See [Pre-defined variables](https://appfire.atlassian.net/wiki/spaces/SCRP/pages/73728439)

# Usage

```
{beanshell}
out.println("Hello world");
{beanshell}

```

```
{beanshell:output=wiki|script=#userByGroup.bsh|group=confluence-users}
{beanshell}

```

```
{beanshell:output=wiki|script=^userByGroup.bsh|showCode=true}
{beanshell}

```

```
{script:output=html|script=^myjava.java}
{script}

```

## Other examples

- [Scripts](https://appfire.atlassian.net/wiki/spaces/SCRP/pages/73730587)

# Security

This macro supports [Macro Security for Confluence](https://appfire.atlassian.net/wiki/spaces/CMSP).