Escolar Documentos
Profissional Documentos
Cultura Documentos
SAP Mobility
SAP Afaria
Applicable Releases:
SAP Afaria 7 (SP1-SP4)
Version 1.0
March 2013
All other product and service names mentioned are the trademarks of
or for any purpose without the express permission of SAP AG. The
any purpose without the express prior written permission of SAP AG.
text, graphics, links, or other items contained within this material. This
Linux is the registered trademark of Linus Torvalds in the U.S. and other
countries.
Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either
trademarks or registered trademarks of Adobe Systems Incorporated in
the United States and/or other countries.
Oracle is a registered trademark of Oracle Corporation.
UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open
Group.
Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame,
and MultiWin are trademarks or registered trademarks of Citrix Systems,
Inc.
HTML, XML, XHTML and W3C are trademarks or registered trademarks
of W3C, World Wide Web Consortium, Massachusetts Institute of
Technology.
Consulting.
Any software coding and/or code lines / strings (Code) included in this
and visualize the syntax and phrasing rules of certain coding. SAP does
countries.
not warrant the correctness and completeness of the Code given herein,
and SAP shall not be liable for errors or damages caused by the usage of
grossly negligent.
Disclaimer
Some components of this product are based on Java. Any code change
and other Sybase products and services mentioned herein as well as their
components.
Any Java Source Code delivered with this product is only to be used by
SAPs Support Services and may not be modified or altered in any way.
Document History
Document Version
Description
1.10
1.00
Typographic Conventions
Icons
Type Style
Description
Icon
Example Text
Example text
Emphasized words or
phrases in body text, graphic
titles, and table titles
Example text
Example text
<Example
text>
EXAMPLE TEXT
Description
Caution
Note or Important
Example
Recommendation or Tip
Table of Contents
1.
2.
3.
Prerequisites ..........................................................................................................................1
4.
5.
Summary............................................................................................................................. 14
6.
Appendix ............................................................................................................................. 15
6.1.1
6.1.2
1. Business Scenario
This document provides an overview of steps that one would need to follow to create enrollment
policies for iOS devices on SAP Afaria. Enrollment policies are used with either the Self Service
Portal (SSP) or when users enroll their own devices by installing AppStore Afaria client and entering
enrollment code to connect their devices to the Afaria server.
2. Background Information
This H2G describes the steps one would need to follow in order to create an enrollment policy for
iOS devices. The enrollment policy created in this guide relies on the creation of enrollment codes
using third party URL shortening services provided by either TinyURL or Google. The guide is
designed to be a starting point and does not prescribe best practice for designing your groups
within Afaria or which policies linked to those groups, the groups and policies used here are
intended for illustration purposes only.
3. Prerequisites
The following are pre-requisites that must be met in order for you to complete the business
scenario in this H2G:
March 2014
4. Step-by-Step Procedure
This H2G provides a basic procedure to follow for creating basic Enrollment Policies for iOS.
Enrollment policies are the policies created for use in enrolling new devices onto Afaria. In order to
create an enrollment policy, you will need to create an enrollment code. An enrollment code is a
short code generated by a URL shortening service such as Google or TinyURL and is a translation of
a much longer URL. From an end-user perspective, it is far easier to provide them with a short code
to use for enrollment instead of having to input things like a server name/IP address, ports, Farm Id
etc in order to configure their devices to connect to the Afaria server. This means, that for a user
who installs an Apple AppStore Afaria client onto their device they would simply need to enter a
short code or enroll via the self-service portal to which the same shortcode has been linked. The
purpose of an enrollment policy is then to:
Note
It is a requirement for iOS enrollment, that the policy is associated with a group (e.g. iOS
Enrollment Policy linked with iOS Static group).
In Afaria Administrator, navigate to Server > Configuration > Server > Enrollment Code.
March 2014
b. Select Enable the Google URL service to enable Googles URL shortening service.
i. If prompted, Accept the terms of service.
ii. For Google, you will need to enter your google API key, refer to the appendix for
instructions on obtaining an API key for this service.
Refer to the troubleshooting section at the end of this guide should you experience difficulty in
testing the connection to Google or TinyURL.
March 2014
March 2014
March 2014
Note
With Google APIs you can specity an expiry date for your enrollment code(optional).
8. Click the green checkmark buttton to generate your new code.
9. The new code entry should be displayed in the Code table. A useful tip ist o type the code into
the description fiel das shown for quick reference later on.
10. Select the code you generated and click the Inspect button in the toolbar.
11. Notice that the enrollment address to which the shortened URL translates is displayed, this
should correspond to your Servers address. Please refer to the appendix at the end of this
guide for details on resolving shortcodes outside of Afaria, which is very useful for
troubleshooting. Close the Inspector window.
March 2014
12. Review the remaining settings but leave the defaults in place. Note that by default, the
Enrollment Policy is set for the device to connect to the server after installation. Also note that
you can optionally set the naming convention for your devices here.
13. Click Group to review the Group settings.
14. From Groups, select the iOS Static group you created in the previous step and use the arrows
to move the selected group to the Selected Groups box on the right.
March 2014
Password:
March 2014
4. Click OK.
5. Click Install in order for Afaria client to start the enrollment process.
March 2014
March 2014
10
8. Once the enrollment process is completed, you should see the following screen on your mobile
device. Click Done.
March 2014
11
9. The session has completed. Now, lets verify on the device. Go to Settings > General and Click
on Profiles, to verify installed profiles.
March 2014
12
Another way to verify device enrollment is via the Afaria Administrator. This is a recommended
approach since you will not always have the physical device being enrolled in your system.
10. Open Afaria Administrator (http://YourAfariaServer/Afaria) to confirm the device has enrolled
in the Devices page.
March 2014
13
5. Summary
By the end of this guide you should now be ready to conduct iOS device enrollment using Afaria
Enrollment Codes.
March 2014
14
6. Appendix
6.1.1
1.
March 2014
15
March 2014
16
7. Verify your account; input your mobile number to receive text message
March 2014
17
10. Next click the APIs & auth and scroll to find Google Cloud Messaging for Android and URL
Shortner API and turn them ON
For tinyURL Enable the "URL Shortener API"
For GCM Enable the "Google Cloud Messaging for Android":
March 2014
18
11. Next, go to API & auth > Registered apps to register an App that will provide us with Google
Enrollment API Key; we will use the browser API Key.
12. Provide a name and select platform (Name: My App Platform Web Application)
March 2014
19
13. Click on the My App (under Registered apps) and expand Browser key and note the API KEY
(see screen on next page)
Note the API KEY as you will be required to input in Afaria Server GCM Enrollment.
March 2014
20
14. You will also need Project ID to use with GCM, to obtain the Project ID, you will have to look
through the URL address for that page:
6.1.2
1.
Troubleshooting
March 2014
21
March 2014
22
March 2014
www.sap.com/contactsap
http://scn.sap.com/community/mobile
http://developers.sap.com/mobile
SAP Mobile Platform How-To Guides