Create and activate an access policy

Access policies give you a rules-based way to control who can access content in your organizations Atlassian apps.

A policy checks information about each request, such as the user's email domain, whether the user is managed by your organization, or the IP address they connect from. When a request matches the policy's conditions, the policy allows or denies a user access.

Each policy is set up for a specific purpose. This means multiple policies with different requirements can run at the same time — both will be evaluated and the most restrictive control will apply.

Read more about access policies

Who can do this?
Role: Organization admin
Atlassian Cloud: Atlassian Guard Standard
Atlassian Government Cloud: Not available


Before you begin

Start building your policy with an idea of which requests it should control and you want to allow or deny them. Start narrow with one condition so the result is easier to check.

You can't test an access policy against live requests before you activate it. Plan to check the policy as soon as you activate it, and be ready to deactivate it if the result is unexpected.

Before you create a policy:

  • Make sure more than one organization admin can access Atlassian Administration, in case a policy blocks your own access.

  • Choose conditions that don't match your own email domain, IP address, or account.

  • Set up a test account that your organization controls and that matches the policy's conditions. Avoid using a service account, because access policies don't check service account requests.

  • Choose a time to activate the policy when other admins are available.

There are four stages to setting up a policy:

  • Create the policy.

  • Review the draft.

  • Activate the policy.

  • Verify the results.

Read more about how to build an access policy


Create an access policy

Once you feel confident in your policies purpose and direction, and you’ve arranged for other organization admins to contribute, you’re ready to start building.

To create a policy:

  1. Go to Atlassian Administration. Select your organization if you have more than one.

  2. Select Security, then Security policies, then Policies.

  3. Select Create new policy.

  4. Enter a Policy name that helps you identify the policy, such as Deny external users - mobile browser.

  5. Set the Policy type to Access policy, then select Create.

  6. Set the Scope to your organization or to specific sites.

  7. Add a Condition and select its value. To add more conditions, select And or Or, or add a Conditions group.

  8. Add a Control and select Allow or Deny.

  9. Select Save, then Save as draft.

While your policy is in the draft state, it won’t be checked or enforced.

Review the draft policy

Before you activate the policy, it’s best to check that it’s set up as expected. Here’s a short checklist that can help you determine if your policy is ready to activate:

  • The scope includes only the organization or sites you intend.

  • The conditions, and how they're combined with And or Or, match the requests you want to control.

  • The control is the one you intend (it denies or allows the request).

  • The policy doesn't match your own access, or the access of the admins who would need to deactivate it.

If anything is unclear or inaccurate, keep the policy in draft and adjust it.

Activate the access policy

When the policy meets your expectations, you can go ahead and activate it.

To activate the policy:

  1. Go to Atlassian Administration. Select your organization if you have more than one.

  2. Select Security, then Security policies, then Policies.

  3. Open the policy, select Save, then Save and activate.

  4. Select Activate.

The active policy will now apply its control to any matching requests. This can take a few minutes.

Verify the results

You can only test a policy when it’s active, so it’s best to verify the results immediately to avoid any unintended results.

To check the policy as soon as it's active:

  1. Sign in with your test account and open a Jira or Confluence site that’s within the policy's scope.

  2. If the control is Deny, the test account should receive a 403 error.

  3. Then, check if a user who doesn't match the policy’s conditions can still access the same content.

  4. Finally confirm whether other organization admins can still access Atlassian Administration.

Keep in mind the active policy applies to every matching request in its scope, not only to your test account.

Access policies don't currently show which requests they allowed or denied. Changes to a policy, such as creating, updating, or deleting it, are recorded in the audit log.

View audit log activities


Deactivate a policy

If the result is unexpected, deactivate the policy so you can make the appropriate edits, then relaunch.

To deactivate a policy:

  1. Go to Atlassian Administration. Select your organization if you have more than one.

  2. Select Security, then Security policies, then Policies.

  3. For the policy, select More actions (), then Deactivate, and confirm.

  4. Check that the policy shows as Inactive.

To update a policy, select More actions (), then Edit.

You can also edit an active policy without deactivating it. Saving your changes creates a new version of the policy. To see all versions, select More actions (), then Manage versions.

 

Still need help?

The Atlassian Community is here for you.