---
title: "Administrator state override"
canonical: "https://support.appfire.com/space/CDML/649760835/Administrator%20state%20override"
format: markdown
---
> Macro (aura-html)


## Overview

> Macro (excerpt)
> 
> Administrators can force a workflow into a different state

This example shows how a workflow administrator can override the workflow state on a page or blog post.

## Who are the workflow administrator users?

To be a workflow **admin user**, you must be one of:

- [Space administrator](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650314379)
- [Confluence administrator](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650150846)
- Defined as a workflow `adminusers` – see below

## Defining adminusers

For any workflow, additional admins can be defined by using the `adminusers` parameter on the **[workflow ](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649662219)**[macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649662219).

```plaintext
{workflow:name=Test|adminusers=janedoe,johndoe}
   {state:Can't change|hideselection=true}
   {state}
   {state:Normally unavailable}
   {state}
{workflow}
```

In the example above, users `janedoe` and `johndoe` are considered `adminusers` for that particular workflow.

## State override

If you apply the workflow above, you'll see that it's not possible to transition from the **Can't change** state because of the `hideselection=true` parameter.

![image](media://8d294c0d-e2ea-4aa4-9304-376c0991479b)

However, administrators can enter a special mode that allows them to transition to any state in the workflow

> ✅ This is particularly useful when developing and testing workflows!

In the browser URL bar, add the following to the end of the page or blog post URL: `?admin=true`.

If the URL already contains a question mark, for example, the "`?pageid=`" type of URL, you'll have to use this instead: `&admin=true`.

For example, if the URL was something like

`https://confluence.yourcompany.com/display/SPACEKEY/Some+Page`

You'd change it to

`https://confluence.yourcompany.com/display/SPACEKEY/Some+Page?admin=true`

But if it was something like this

`https://confluence.yourcompany.com/pages/viewpage.action?pageId=29263912`

You'd change it to

`https://confluence.yourcompany.com/pages/viewpage.action?pageId=29263912&admin=true`

Now, when you open the [workflow state dialog box](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649659846), you'll see options to transition to any state, including any that would otherwise be unavailable.

![image](media://6a09bd3d-2bf7-47ef-88e0-d45d531ab2f8)

> 📝 Once you're done, just remove the "`?admin=true`" or "`&admin=true`" from the URL bar, and everything is back to normal.

## See also

[Workflow Authoring Guide](https://appfire.atlassian.net/wiki/spaces/CDML/pages/648611901)

- [Confused States - Grey Circle](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649532620)
- [Roles and Permissions](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650217543)
- [Transitions](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649563425)
- [States](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649595551)

[Space administration](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650314379)

- [Initialize States](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649827807)

[User Guide](https://appfire.atlassian.net/wiki/spaces/CDML/pages/648907144)

- [State status indicator circles](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650152863)