<h2>Create a QR code for mobile login</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2025" /><meta name="DC.rights.owner" content="(C) Copyright 2025" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="task" /><meta name="DC.title" content="Create a QR code for mobile login" /><meta name="abstract" content="Create and use a QR code containing JSON to provide a method for your users to log in with pre-defined parameters." /><meta name="description" content="Create and use a QR code containing JSON to provide a method for your users to log in with pre-defined parameters." /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-08-03" /><meta name="DC.date.modified" content="2024-08-01" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="create-qr-login" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Create a QR code for mobile login</title></head><body id="create-qr-login"> <h1 class="title topictitle1" id="ariaid-title1">Create a QR code for mobile login</h1> <div class="body taskbody"><p class="shortdesc">Create and use a QR code containing JSON to provide a method for your users to log in with pre-defined parameters.</p> <div class="section prereq p">Role required: none</div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Use a text editor to create JSON using the following parameters.</span> <div class="itemgroup info"> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="create-qr-login__table_owl_h5f_5fb" class="table" frame="border" border="1" rules="all"><colgroup><col style="width:50%" /><col style="width:50%" /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry nocellnorowborder" style="vertical-align:top;" id="d179637e60">Parameter</th><th class="entry cell-norowborder" style="vertical-align:top;" id="d179637e63">Definition</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry nocellnorowborder" style="vertical-align:top;" headers="d179637e60 ">InstanceUrl</td><td class="entry cell-norowborder" style="vertical-align:top;" headers="d179637e63 ">The URL for your instance. For example, https://example.service-now.com</td></tr><tr class="row"><td class="entry row-nocellborder" style="vertical-align:top;" headers="d179637e60 ">Name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d179637e63 ">The name of your instance. For example, Example.</td></tr></tbody></table> </div> </div> <div class="itemgroup stepxmp"> <p class="p">The JSON consists of parameters and values, separated by comas, and enclosed in curly braces. Each parameter is separated from its value by a colon, and each parameter and value is enclosed in double quotes, as shown in these examples. The image shows how the instance appears in instance selection screen for the app.</p> <pre class="pre codeblock"><code> { "InstanceUrl":"https://example.service-now.com", "Name":"Example" }</code></pre> <img class="image" id="create-qr-login__image_cvg_pdp_5gb" src="../image/instance-name-example.png" alt="Instance and nickname in the ServiceNow Agent app." /> </div> <div class="itemgroup stepxmp"> <p class="p">This second example includes only the <code class="ph codeph">InstanceUrl</code> value, which is also valid.</p> <pre class="pre codeblock"><code>{ "InstanceUrl":"https://example.service-now.com" }</code></pre> </div> <div class="itemgroup info"> <div class="note important"><span class="importanttitle">Important:</span> <ul class="ul"><li class="li"><span class="ph">ServiceNow</span> instances do not provide a method to create JSON files. You can create these files using your text editor of choice.</li><li class="li">Parameters are not supported for the <span class="ph">Android</span> OS. To use a QR code for <span class="ph">Android</span>, create a QR code containing only the URL for the instance as text rather than JSON. For example, https://example.service-now.com.</li></ul> </div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Use a QR code generator of your choice to encode this JSON or text into a QR code.</span> <div class="itemgroup info"> <div class="note"><span class="notetitle">Note:</span> ServiceNow instances do not provide a method to create QR codes, however there are many online resources you can use to create QR codes using the JSON created in the previous steps.</div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Use your QR code to access the mobile app. For steps to use a QR code with the app, see <a class="xref" href="login-end-user.html" title="Learn how to access an instance using a ServiceNow mobile app.">Add a ServiceNow instance to ServiceNow mobile apps</a>.</span> </li></ol> </div> </body></html></div>