Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Creating or updating ACLs to block attachment on SG Mobile app does not work on Android devices - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Creating or updating ACLs to block attachment on SG Mobile app does not work on Android devices
KB0755846

Creating or updating ACLs to block attachment on SG Mobile app does not work on Android devices


713 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Description

Product documentation for SG Mobile app specifies that, by creating ACLs on the aya_attachment table, we can restrict users from adding attachments.

Disabling attachments on a mobile device:
Use an ACL to block specific access on mobile. Use the isMobile method to check if a request comes from a mobile device. For example, you could add an ACL for the attachment [sys_attachment] table where the read and write scripted ACLs includes the following check. You can also add this code to any existing ACLs you have for the attachment table. If have multiple attachment ACLs, all of the need to have Admin override option unchecked.
if( gs.isMobile() ){
answer = false;
}

However, this does not help in case of Agent mobile app for Android devices. On iPhone, the attachment icon is hidden, Android still shows it.

Steps to Reproduce

1. Login an Android device.

2. Check for the create ACLs on sys_attachment table. There are 2 OOB ACLs.

3. Add the condition to return false for non admin users if the device is mobile. For instance, in one of the create ACLs you need to write a script like this:

if( gs.isMobile()){
answer = false;
}
else{
answer = getSCAttachmentCreateAnswer();
}

function getSCAttachmentCreateAnswer() {
if (current.table_name == 'sc_cart_item')
return true;
return false;
}

4. Follow a similar approach for the other ACLs as well.

5. Go to agent app as a non admin user and check if you can add attachments to a record or not. Observe the non-admin user can attach.

Workaround

This problem is fixed in all currently supported releases.

The pre-New York workaround was to go to the System Properties table, search for the "glide.ui.m_agents" property, and append at the end the string the value ",android".

For example: "iphone,android_phone,IEMobile,Windows Phone,iPod,Windows CE,BlackBerry,BB10,android".


Related Problem: PRB1352263

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.