Understand how to build 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? |
Understand how a policy is set up
When you set up a policy, you’ll need to:
Choose your scope.
Set your conditions.
Choose your control.
These are the core components of a policy. Even though the scope, conditions, and the way you control a policy may differ, they will always contain these core steps.
Once these are set up, you can save the policy as a draft or activate it. You can change its state at any time.
Choose your scope
The first decision is where the policy applies. Your options are:
Your whole organization. This includes all sites and apps in your organization.
Specific sites only. This includes all apps on your chosen sites.
You can also choose if there are certain locations where the policy does not apply, and add those locations as an exclusion.
Set your conditions
Conditions describe the requests the policy applies to. These are the available conditions:
Condition | What it checks |
|---|---|
User type | Whether the user is managed by your organization or external to it. |
Domain | The email domain of the user's Atlassian account. |
Authenticated IP address | The IP address of a signed-in user or an API token request. Enter an IPv4 or IPv6 address or CIDR range. |
Authentication type | Whether the request uses a signed-in browser session or an API token. |
Device type | Whether the request comes from a mobile browser. This doesn't include the Jira and Confluence mobile apps. |
You can add more than one condition to a policy. Choose And when all conditions must match, or Or when either one of them is enough.
To combine both, add a Conditions group. The conditions inside a group are combined using the group's own And or Or, and the group is then assessed against the rest of the policy's conditions.
For example, you could deny access when the user type is external AND the device type is mobile. Only external users on a mobile browser would be denied.
Which requests are checked?
Access policies check requests to Jira and Confluence made in a signed-in browser session or with an API token. They don't currently check:
Requests from users who aren't signed in, except for the Device type condition. Access policies don't make content that's open to unauthenticated users private.
Jira Service Management customer accounts, for the User type and Domain conditions.
Requests from third-party apps that use OAuth 2.0, and requests from Marketplace apps.
Requests from service accounts.
Content sent outside a request, such as email notifications.
Choose your control
You choose what happens when a request matches the policy's conditions. There are two options:
Allow access to the content.
Deny access to the content. The user will receive a 403 error.
As soon as a policy is active, it will apply it’s control to every matching request in its scope. This means, it can deny user access to Atlassian Administration.
Before you activate a policy, make sure at least one other organization admin doesn’t match the policy’s conditions and can still access Atlassian Administration.
Was this helpful?