"Block mobile access" setting in Access Policies also blocks REST API requests from VBA script

XMLWordPrintable

    • 3
    • Severity 3 - Minor

      Issue Summary

      When "Block mobile access" is enabled in Atlassian Admin > Access Policies, REST API requests made from a VBA script are also blocked with a 403 error. The policy appears to apply to all non-browser API calls regardless of the device type.

      Steps to Reproduce

      1. Log in to Atlassian Admin at https://admin.atlassian.com
      1. Navigate to Security > Access Policies
      1. Set mobile access to "Block" for the target policy
      1. From a PC, execute a REST API call to the affected site using a VBA script
      1. Observe that a 403 error is returned

      Expected Results

      The "Block mobile access" policy should only restrict access from mobile devices. REST API requests originating from a PC should be processed successfully and return the expected data.

      Actual Results

      The below exception is returned in the API response:
      {{}}

      {"message":"You can't access this content because your admin applied a security policy that blocks access to apps in this organization.","status":403}

      {{}}
      Note: When mobile access is set to "Allow," the same REST API request from the same VBA script returns a successful response.

      Workaround

      • Specify an explicit user agent for the script/api tool
      • or Change the mobile access setting to "Allow" in Access Policies. (Note that this removes the mobile access restriction entirely, which may conflict with the organization's security requirements.)

              Assignee:
              Abhay Nirantar
              Reporter:
              Chung Jeon
              Votes:
              7 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: