Mobile Device Management (MDM)

Introduction

With the introduction of MDM (Mobile Device Management) by Apple for its devices, a MDM server can securely push a configuration to the iOS device, respectively recieve feedback from the device. ownCloud supports MDM for it’s iOS-App.

The configuration is basically a key-value dictionary provided as a .plist file. The app can access this configuration from the server in read-only mode using the NSUserDefaults class by reading a configuration dictionary under the key com.apple.configuration.managed. The app can also observe a system notification via class NSUserDefaultsDidChangeNotification to get notified about configuration changes. For feedback, the app writes a dictionary with feedback information into user defaults under the com.apple.feedback.managed key.

Configurable Settings

The ownCloud iOS App implements a mechanism internally called Class Settings which can be derived from different sources:

  • Environment variables which e.g. can be set in Xcode for testing. In this case setting keys have to be prepended with oc: prefix.

  • User preferences accessed by the very same API but stored under org.owncloud.user-settings key.

  • Settings dictionary pushed by an MDM Server and accessible using NSUserDefaults API under the key com.apple.configuration.managed.

  • Default settings defined directly in the app sourcecode.

  • Branding.plist which is the part of the Xcode project under ownCloud/Resources/Theming. It allows to override class settings by specifying them in the Configuration section

There is also an order in which these settings take precedence, where environment variables have highest priority. When settings are accessed, they are merged and higher priority value for the same key overwrites lower priority ones.

Some settings are accessed only once at runtime and the read value is cached, so that new setting to take effect may a require an app to be terminated and restarted.

App Basic Configurations

There are few settings allowing to mark an app installation as BETA and e.g. to supress UIKit animation and review prompt.

Key Type Default Description Status

app.app-store-link

string

https://itunes.apple.com/app/id1359583808?mt=8

URL for the app in the App Store.

advanced candidate

app.enable-review-prompt

bool

true

Enable/disable review prompt.

advanced candidate

app.recommend-to-friend-enabled

bool

true

Enables/disables the recommend to a friend entry in the settings.

advanced candidate

app.enable-ui-animations

bool

true

Enable/disable UI animations.

debugOnly

app.is-beta-build

bool

false

Controls if the app is built for beta or release purposes.

debugOnly

app.show-beta-warning

bool

false

Controls whether a warning should be shown on the first run of a beta version.

debugOnly

Extensions / Actions

The ownCloud iOS app uses internally a plug-in like mechanism called extensions. Extensions are used to implement menu actions mostly found under "+" menu allowing to add new items (Upload media, take photo etc.) or in more menu (Copy, Move, Open in etc.). Using below settings actions / extensions can be disabled. Extensions are enabled by default, however this might depend on licensing requirements of a particular extension.

Key Type Default Description Status

action.allowed

stringArray

[]

List of all allowed actions. If provided, actions not listed here are not allowed.

Value

Description

com.owncloud.action.addToSidebar

Add to sidebar

com.owncloud.action.availableOffline

Make available offline

com.owncloud.action.collaborate

Sharing

com.owncloud.action.copy

Copy

com.owncloud.action.createDocument

New document

com.owncloud.action.createFolder

Create folder

com.owncloud.action.createShortcutFile

Create shortcut

com.owncloud.action.cutpasteboard

Cut

com.owncloud.action.delete

Delete

com.owncloud.action.duplicate

Duplicate

com.owncloud.action.favorite

Favorite item

com.owncloud.action.importpasteboard

Paste

com.owncloud.action.markup

Markup

com.owncloud.action.move

Move

com.owncloud.action.openShortcutFile

Open shortcut

com.owncloud.action.openin

Open in

com.owncloud.action.pdfpage

Go to page

com.owncloud.action.presentationmode

Presentation Mode

com.owncloud.action.removeFromSidebar

Remove from sidebar

com.owncloud.action.rename

Rename

com.owncloud.action.scan

Scan document

com.owncloud.action.show-exif

Image metadata

com.owncloud.action.unfavorite

Unfavorite item

com.owncloud.action.unshare

Unshare

com.owncloud.action.upload.camera_media

Take photo or video

com.owncloud.action.uploadfile

Upload file

com.owncloud.action.uploadphotos

Upload from your photo library

advanced candidate

Create Document Mode

action.create-document-mode

string

create-and-open

Determines behaviour when creating a document.

Value

Description

create

Creates the document.

create-and-open

Creates the document and opens it in a web app for the document format.

advanced candidate

action.disallowed

stringArray

[]

List of all disallowed actions. If provided, actions not listed here are allowed.

Value

Description

com.owncloud.action.addToSidebar

Add to sidebar

com.owncloud.action.availableOffline

Make available offline

com.owncloud.action.collaborate

Sharing

com.owncloud.action.copy

Copy

com.owncloud.action.createDocument

New document

com.owncloud.action.createFolder

Create folder

com.owncloud.action.createShortcutFile

Create shortcut

com.owncloud.action.cutpasteboard

Cut

com.owncloud.action.delete

Delete

com.owncloud.action.duplicate

Duplicate

com.owncloud.action.favorite

Favorite item

com.owncloud.action.importpasteboard

Paste

com.owncloud.action.markup

Markup

com.owncloud.action.move

Move

com.owncloud.action.openShortcutFile

Open shortcut

com.owncloud.action.openin

Open in

com.owncloud.action.pdfpage

Go to page

com.owncloud.action.presentationmode

Presentation Mode

com.owncloud.action.removeFromSidebar

Remove from sidebar

com.owncloud.action.rename

Rename

com.owncloud.action.scan

Scan document

com.owncloud.action.show-exif

Image metadata

com.owncloud.action.unfavorite

Unfavorite item

com.owncloud.action.unshare

Unshare

com.owncloud.action.upload.camera_media

Take photo or video

com.owncloud.action.uploadfile

Upload file

com.owncloud.action.uploadphotos

Upload from your photo library

advanced candidate

action.excludedSystemActivities

stringArray

List of all operating system activities that should be excluded from OS share sheets in actions such as Open In.

Value

Description

com.apple.UIKit.activity.AddToReadingList

Add to reading list

com.apple.UIKit.activity.AirDrop

AirDrop

com.apple.UIKit.activity.AssignToContact

Assign to contact

com.apple.UIKit.activity.CopyToPasteboard

Copy to pasteboard

com.apple.UIKit.activity.Mail

Mail

com.apple.UIKit.activity.MarkupAsPDF

Markup as PDF

com.apple.UIKit.activity.Message

Message

com.apple.UIKit.activity.OpenInIBooks

Open in (i)Books

com.apple.UIKit.activity.Print

Print

com.apple.UIKit.activity.SaveToCameraRoll

Save to camera roll

advanced candidate

Open In WebApp mode

action.open-in-web-app-mode

string

auto

Determines how to open a document in a web app.

Value

Description

auto

Open using in-app-with-default-browser-option, unless the respective endpoint is not available - in which case default-browser is used instead. If no endpoint to open the document is available, an error message is shown.

default-browser

Open in default browser app. May require user to sign in.

in-app

Open inline in an in-app browser.

in-app-with-default-browser-option

Open inline in an in-app browser, but provide a button to open the document in the default browser (may require the user to sign in).

advanced candidate

Open Shortcut mode

action.open-shortcut-mode

string

all

Determines how the app opens shortcut files (ending in .url) app.

Value

Description

all

Open all shortcut files, targeting both links (web and other) and items.

items-only

Open only shortcut files that target items.

links-only

Open only shortcut files that target links (web and other).

none

Do not open shortcut files.

advanced candidate

(*) These extensions might require additional license (in-app purchase, enterprise version).

File Provider

To control support for File Provider / Files.app.

Key Type Default Description Status

fileprovider.browseable

bool

true

Controls whether the account content is available to other apps via File Provider / Files.app.

supported candidate

Display Settings

To customize file list UI behevior, following settings are available:

Key Type Default Description Status

display.prevent-dragging-files

bool

false

Controls whether drag and drop should be prevented for items inside the app.

advanced candidate

display.show-hidden-files

bool

false

Controls whether hidden files (i.e. files starting with . ) should also be shown.

advanced candidate

display.sort-folders-first

bool

false

Controls whether folders are shown at the top.

advanced candidate

Passcode Enforcement

If your organization policies require users to use a passcode as an additional security barrier for managed apps, the below setting will allow to enforce this requirement.

Key Type Default Description Status

passcode.enforced

bool

false

Controls wether the user MUST establish a passcode upon app installation.

advanced candidate

passcode.enforced-by-device

bool

false

Controls wether the user MUST establish a passcode upon app installation, if NO device passcode protection is set.

advanced candidate

passcode.lockDelay

int

Number of seconds before the lock snaps and the passcode is requested again.

advanced candidate

passcode.maximumPasscodeDigits

int

6

Controls how many passcode digits are maximal possible for passcode lock.

advanced candidate

passcode.requiredPasscodeDigits

int

4

Controls how many passcode digits are at least required for passcode lock.

advanced candidate

passcode.share-sheet-biometrical-unlock-by-app

dictionary

map[com.air-watch.boxer:map[allow:false] default:map[allow:true]]

Controls the biometrical unlock availability in the share sheet, with per-app level control.

advanced candidate

passcode.use-biometrical-unlock

bool

false

Controls wether the biometrical unlock will be enabled automatically.

advanced candidate

Bookmark

Below settings allow to configure the app to use a certain server URL and even bind it to this URL only by setting the default non-editable.

Key Type Default Description Status

bookmark.prepopulation

string

Controls prepopulation of the local database with the full item set during account setup.

Value

Description

doNot

No prepopulation. Request the contents of every folder individually.

split

Parse the prepopulation metadata after receiving it as a whole.

streaming

Parse the prepopulation metadata while receiving it.

supported candidate

Item Policies

Key Type Default Description Status

item-policy.local-copy-expiration

int

604800

The number of seconds that a file hasn’t been downloaded, modified or opened after which the local copy is removed.

advanced candidate

item-policy.local-copy-expiration-enabled

bool

true

Controls whether local copies should automatically be removed after they haven’t been downloaded, modified or opened for a period of time.

advanced candidate

item-policy.vacuum-sync-anchor-ttl

int

60

Number of seconds since the removal of an item after which the metadata entry may be finally removed.

debugOnly

Connection

Settings concerning HTTP user agent, cookies, background support etc.

Key Type Default Description Status

connection.allow-cellular

bool

true

Allow the use of cellular connections.

recommended candidate

core.cookie-support-enabled

bool

true

Enable or disable per-process, in-memory cookie storage.

supported candidate

http.traffic-log-format

string

json

If request and response logging is enabled, the format to use.

Value

Description

json

JSON

plain

Plain text

supported candidate

http.user-agent

string

ownCloudApp/{{app.version}} ({{app.part}}/{{app.build}}; {{os.name}}/{{os.version}}; {{device.model}})

A custom User-Agent to send with every HTTP request.

The following placeholders can be used to make it dynamic: - {{app.build}}: the build number of the app (f.ex. 123) - {{app.version}}: the version of the app (f.ex. 1.2) - {{app.part}}: the part of the app (more exactly: the name of the main bundle) from which the request was sent (f.ex. App, ownCloud File Provider) - {{device.model}}: the model of the device running the app (f.ex. iPhone, iPad) - {{device.model-id}}: the model identifier of the device running the app (f.ex. iPhone8,1) - {{os.name}} : the name of the operating system running on the device (f.ex. iOS, iPadOS) - {{os.version}}: the version of operating system running on the device (f.ex. 13.2.2)

supported candidate

connection.always-request-private-link

bool

false

Controls whether private links are requested with regular PROPFINDs.

advanced candidate

connection.plain-http-policy

string

warn

Policy regarding the use of plain (unencryped) HTTP URLs for creating bookmarks. A value of warn will create an issue (typically then presented to the user as a warning), but ultimately allow the creation of the bookmark. A value of forbidden will block the use of http-URLs for the creation of new bookmarks.

advanced candidate

connection.validator-flags

stringArray

Allows fine-tuning the behavior of the connection validator by enabling/disabling aspects of it.

Value

Description

502-triggers

Connection validation is triggered when receiving a responses with 502 status.

clear-cookies

Clear all cookies for the connection when entering connection validation.

advanced candidate

core.action-concurrency-budgets

dictionary

map[actions:10 all:0 download:3 download-wifi-and-cellular:3 download-wifi-only:2 transfer:6 upload:3 upload-cellular-and-wifi:3 upload-wifi-only:2]

Concurrency budgets available for sync actions by action category.

advanced candidate

core.add-accept-language-header

bool

true

Add an Accept-Language HTTP header using the preferred languages set on the device.

advanced candidate

core.scan-for-changes-interval

int

Minimum number of milliseconds until the next scan for changes, measured from the completion of the previous scan. If no value is provided, uses the poll interval provided in the server’s capabilities (in milliseconds) if it is greater or equal 5 seconds. Defaults to 10 seconds otherwise.

advanced candidate

server-locator.lookup-table

dictionary

Lookup table that maps users to server URLs

advanced candidate

server-locator.use

string

Use Server Locator

Value

Description

lookup-table

Locate server via lookup table. Keys can match against the beginning (f.ex. "begins:bob@"), end (f.ex. "ends:@owncloud.org") or regular expression (f.ex. "regexp:")

web-finger

Locate server via Webfinger service-instance relation (http://webfinger.owncloud/rel/server-instance) using the entered/provided server URL

advanced candidate

connection.allow-background-url-sessions

bool

true

Allow the use of background URL sessions. Note: depending on iOS version, the app may still choose not to use them. This settings is overriden by force-background-url-sessions.

debugOnly

connection.force-background-url-sessions

bool

false

Forces the use of background URL sessions. Overrides allow-background-url-sessions.

debugOnly

connection.minimum-server-version

string

10.0

The minimum server version required.

debugOnly

core.override-availability-signal

bool

Override the availability signal, so the host is considered to always be in maintenance mode (true) or never in maintenance mode (false).

debugOnly

core.override-reachability-signal

bool

Override the reachability signal, so the host is always considered reachable (true) or unreachable (false).

debugOnly

core.thumbnail-available-for-mime-type-prefixes

stringArray

[*]

Provide hints that thumbnails are available for items whose MIME-Type starts with any of the strings provided in this array. Providing an empty array turns off thumbnail loading. Providing ["*"] turns on thumbnail loading for all items.

debugOnly

host-simulator.active-simulations

stringArray

[]

Active Host simulation extensions.

Value

Description

action-timeout-simulator

Lets all MOVE/COPY/DELETE/PUT requests fail with a timeout error.

auth-race-condition

Responds to all .well-known/webfinger requests with server-instance responses.

five-seconds-of-404

Return status code 404 for every request for the first five seconds.

only-404

Return status code 404 for every request.

recovering-apm

Redirect any request without cookies to a bogus endpoint for 30 seconds, then to a cookie-setting endpoint, where cookies are set - and then redirect back.

reject-downloads-500

Reject Downloads with status 500 responses.

simple-apm

Redirect any request without cookies to a cookie-setting endpoint, where cookies are set - and then redirect back.

web-finger

Responds to all .well-known/webfinger requests with server-instance responses.

debugOnly

Server Endpoints

Individually configurable endpoints of the ownCloud server instance.

Key Type Default Description Status

connection.endpoint-capabilities

string

ocs/v2.php/cloud/capabilities

Endpoint to use for retrieving server capabilities.

advanced candidate

connection.endpoint-recipients

string

ocs/v2.php/apps/files_sharing/api/v1/sharees

Path of the sharing recipient API endpoint.

advanced candidate

connection.endpoint-remote-shares

string

ocs/v2.php/apps/files_sharing/api/v1/remote_shares

Path of the remote shares API endpoint.

advanced candidate

connection.endpoint-shares

string

ocs/v2.php/apps/files_sharing/api/v1/shares

Path of the shares API endpoint.

advanced candidate

connection.endpoint-status

string

status.php

Endpoint to retrieve basic status information and detect an ownCloud installation.

advanced candidate

connection.endpoint-user

string

ocs/v2.php/cloud/user

Endpoint to use for retrieving information on logged in user.

advanced candidate

connection.endpoint-webdav

string

remote.php/dav/files

Endpoint to use for WebDAV.

advanced candidate

connection.endpoint-webdav-meta

string

remote.php/dav/meta

Endpoint to use for WebDAV metadata.

advanced candidate

connection.well-known

string

.well-known

Path of the .well-known endpoint.

advanced candidate

Connection Authentication / Security

Settings concerning certificate validation policies.

Key Type Default Description Status

connection.allowed-authentication-methods

stringArray

Array of allowed authentication methods. Nil/Missing for no restrictions.

Value

Description

com.owncloud.basicauth

Basic Auth

com.owncloud.oauth2

OAuth2

com.owncloud.openid-connect

OpenID Connect

recommended candidate

connection.preferred-authentication-methods

stringArray

[com.owncloud.openid-connect com.owncloud.oauth2 com.owncloud.basicauth]

Array of authentication methods in order of preference (most preferred first).

Value

Description

com.owncloud.basicauth

Basic Auth

com.owncloud.oauth2

OAuth2

com.owncloud.openid-connect

OpenID Connect

recommended candidate

connection.associated-certificates-tracking-rule

string

Rule that defines the criteria that need to be met by a hostname other than a bookmark’s hostname for the associated certificate to be added to the bookmark, tracked for changes and validated by the same rules as the bookmark’s primary certificate. No value (default) or a value of (0 == 1) disables this feature. A value of $hostname like "*.mycompany.com" tracks the certificates for all hosts ending with mycompany.com.

advanced candidate

connection.certificate-extended-validation-rule

string

bookmarkCertificate == serverCertificate

Rule that defines the criteria a certificate needs to meet for OCConnection to recognize it as valid for a bookmark.

Examples of expressions: - bookmarkCertificate == serverCertificate: the whole certificate needs to be identical to the one stored in the bookmark during setup. - bookmarkCertificate.publicKeyData == serverCertificate.publicKeyData: the public key of the received certificate needs to be identical to the public key stored in the bookmark during setup. - serverCertificate.passedValidationOrIsUserAccepted == true: any certificate is accepted as long as it has passed validation by the OS or was accepted by the user. - serverCertificate.commonName == "demo.owncloud.org": the common name of the certificate must be "demo.owncloud.org". - serverCertificate.rootCertificate.commonName == "DST Root CA X3": the common name of the root certificate must be "DST Root CA X3". - serverCertificate.parentCertificate.commonName == "Let’s Encrypt Authority X3": the common name of the parent certificate must be "Let’s Encrypt Authority X3". - serverCertificate.publicKeyData.sha256Hash.asFingerPrintString == "2A 00 98 90 BD … F7": the SHA-256 fingerprint of the public key of the server certificate needs to match the provided value.

advanced candidate

connection.renewed-certificate-acceptance-rule

string

(bookmarkCertificate.publicKeyData == serverCertificate.publicKeyData) OR check.parentCertificatesHaveIdenticalPublicKeys == true) AND (serverCertificate.passedValidationOrIsUserAccepted == true OR bookmarkCertificate.parentCertificate.sha256Fingerprint.asFingerPrintString == "73 0C 1B DC D8 5F 57 CE 5D C0 BB A7 33 E5 F1 BA 5A 92 5B 2A 77 1D 64 0A 26 F7 A4 54 22 4D AD 3B") AND (bookmarkCertificate.rootCertificate.sha256Fingerprint.asFingerPrintString == "06 87 26 03 31 A7 24 03 D9 09 F1 05 E6 9B CF 0D 32 E1 BD 24 93 FF C6 D9 20 6D 11 BC D6 77 07 39") AND (serverCertificate.parentCertificate.sha256Fingerprint.asFingerPrintString == "67 AD D1 16 6B 02 0A E6 1B 8F 5F C9 68 13 C0 4C 2A A5 89 96 07 96 86 55 72 A3 C7 E7 37 61 3D FD") AND (serverCertificate.rootCertificate.sha256Fingerprint.asFingerPrintString == "96 BC EC 06 26 49 76 F3 74 60 77 9A CF 28 C5 A7 CF E8 A3 C0 AA E1 1A 8F FC EE 05 C0 BD DF 08 C6") AND (serverCertificate.passedValidationOrIsUserAccepted == true

Rule that defines the criteria that need to be met for OCConnection to accept a renewed certificate and update the bookmark’s certificate automatically instead of prompting the user. Used when the extended validation rule fails. Set this to never if the user should always be prompted when a server’s certificate changed.

advanced candidate

post-build.allowed-settings

stringArray

[]

List of settings (as flat identifiers) that are allowed to be changed post-build via the app’s URL scheme. Including a value of "*" allows any setting to be changed. Defaults to an empty array (equalling not allowed).

advanced candidate

user-settings.allow

stringArray

List of settings (as flat identifiers) users are allowed to change. If this list is specified, only these settings can be changed by the user.

advanced candidate

user-settings.disallow

stringArray

List of settings (as flat identifiers) users are not allowed to change. If this list is specified, all settings not on the list can be changed by the user.

advanced candidate

connection.transparent-temporary-redirect

bool

false

Controls whether 307 redirects are handled transparently at the HTTP pipeline level (by resending the headers and body).

debugOnly

OAuth2 Based Authentication

Settings allowing to configure OAuth2 based authentication.

Key Type Default Description Status

authentication-oauth2.oa2-authorization-endpoint

string

index.php/apps/oauth2/authorize

OAuth2 authorization endpoint.

advanced candidate

authentication-oauth2.oa2-client-id

string

mxd5OQDk6es5LzOzRvidJNfXLUZS2oN3oUFeXPP8LpPrhx3UroJFduGEYIBOxkY1

OAuth2 Client ID.

advanced candidate

authentication-oauth2.oa2-client-secret

string

KFeFWWEZO9TkisIQzR3fo7hfiMXlOpaqP8CFuTbSHzV1TUuGECglPxpiVKJfOXIx

OAuth2 Client Secret.

advanced candidate

authentication-oauth2.oa2-redirect-uri

string

oc://ios.owncloud.com

OAuth2 Redirect URI.

advanced candidate

authentication-oauth2.oa2-token-endpoint

string

index.php/apps/oauth2/api/v1/token

OAuth2 token endpoint.

advanced candidate

authentication-oauth2.omit-authorization-parameters

stringArray

Omit Authorization Request Parameters - parameter names provided here are omitted from OAuth2 authorization requests.

advanced candidate

authentication-oauth2.post-client-id-and-secret

bool

false

Send Client ID and Client Secret in the body of POST requests to the token endpoint. As per RFC 6749 section 2.3.1, this should only be used if the token endpoint does not support receiving these via Basic authentication.

advanced candidate

authentication-oauth2.oa2-expiration-override-seconds

int

OAuth2 Expiration Override - lets OAuth2 tokens expire after the provided number of seconds (useful to prompt quick refresh_token requests for testing)

debugOnly

OpenID Connect (OIDC) parameters

OpenID Connect (OIDC) parameters allow you fine-tune the behaviour, in case the Identity Provider (IdP) needs something special.

Key Type Default Description Status

authentication-oauth2.oidc-fallback-on-client-registration-failure

bool

true

If client registration is enabled, but registration fails, controls if the error should be ignored and the default client ID and secret should be used instead.

supported candidate

authentication-oauth2.oidc-prompt

string

select_account consent

OpenID Connect Prompt

supported candidate

authentication-oauth2.oidc-redirect-uri

string

oc://ios.owncloud.com

OpenID Connect Redirect URI

supported candidate

authentication-oauth2.oidc-register-client

bool

true

Use OpenID Connect Dynamic Client Registration if the .well-known/openid-configuration provides a registration_endpoint. If this option is enabled and a registration endpoint is available, oa2-client-id and oa2-client-secret will be ignored.

supported candidate

authentication-oauth2.oidc-register-client-name-template

string

ownCloud/{{os.name}} {{app.version}}

Client Name Template to use during OpenID Connect Dynamic Client Registration. In addition to the placeholders available for http.user-agent, {{url.hostname}} can also be used.

supported candidate

authentication-oauth2.oidc-scope

string

openid offline_access email profile

OpenID Connect Scope

supported candidate

Logging

Logging settings control the ammount and type of app internal log messages stored as text files and accessible via settings menu.

Key Type Default Description Status

log.level

int

4

Log level

Value

Description

-1

verbose

0

debug

1

info

2

warning

3

error

4

off

supported candidate

log.privacy-mask

bool

false

Controls whether certain objects in log statements should be masked for privacy.

supported candidate

log.blank-filtered-messages

bool

false

Controls whether filtered out messages should still be logged, but with the message replaced with -.

advanced candidate

log.colored

bool

false

Controls whether log levels should be replaced with colored emojis.

advanced candidate

log.enabled-components

stringArray

[writer.stderr writer.file]

List of enabled logging system components.

Value

Description

option.log-file-operations

Log internal file operations

option.log-requests-and-responses

Log HTTP requests and responses

writer.file

Log file

writer.stderr

Standard error output

advanced candidate

log.format

string

text

Determines the format that log messages are saved in

Value

Description

json

Detailed JSON (one line per message).

json-composed

A simpler JSON version where details are already merged into the message.

text

Standard logging as text.

advanced candidate

log.maximum-message-size

int

0

Maximum length of a log message before the message is truncated. A value of 0 means no limit.

advanced candidate

log.omit-matching

stringArray

If set, omits logs messages containing any of the exact terms in this array.

advanced candidate

log.omit-tags

stringArray

If set, omits all log messages tagged with tags in this array.

advanced candidate

log.only-matching

stringArray

If set, only logs messages containing at least one of the exact terms in this array.

advanced candidate

log.only-tags

stringArray

If set, omits all log messages not tagged with tags in this array.

advanced candidate

log.replace-newline

bool

true

Controls whether messages spanning more than one line should be logged as a single line, after replacing new line characters with "\n".

advanced candidate

log.single-lined

bool

false

Controls whether messages spanning more than one line should be broken into their individual lines and each be logged with the complete lead-in/lead-out sequence.

advanced candidate

log.synchronous

bool

false

Controls whether log messages should be written synchronously (which can impact performance) or asynchronously (which can loose messages in case of a crash).

advanced candidate

measurements.enabled

bool

true

Turn measurements on or off

debugOnly

Account Handling

Authentication Settings

Authentication settings control the behaviour of the web-based login.

Key Type Default Description Status

authentication.browser-session-class

string

operating-system

Alternative browser session class to use instead of ASWebAuthenticationSession. Please also see Compile Time Configuration if you want to use this.

Value

Description

AWBrowser

Replace http with awb and https with awbs to delegate browser sessions to the AirWatch browser.

CustomScheme

Replace http and https with custom schemes to delegate browser sessions to a different app.

MIBrowser

Replace http with mibrowser and https with mibrowsers to delegate browser sessions to the MobileIron browser.

UIWebView

Use UIWebView for browser sessions. Requires compilation with OC_FEATURE_AVAILABLE_UIWEBVIEW_BROWSER_SESSION=1 preprocessor flag.

operating-system

Use ASWebAuthenticationSession for browser sessions.

supported candidate

authentication.browser-session-prefers-ephermal

bool

false

Indicates whether the app should ask iOS for a private authentication (web) session for OAuth2 or OpenID Connect. Private authentication sessions do not share cookies and other browsing data with the user’s normal browser. Apple only promises that [this setting](https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession/3237231-prefersephemeralwebbrowsersessio) will be honored if the user has set Safari as default browser.

supported candidate

authentication.skip-www-authenticate-checks

bool

Overrides whether the default WebDAV endpoint should be probed to detect available authentication methods. By default, the necessity for this is determined dynamically.

supported candidate

Browsersession (deprecated)

Browsersession settings were extended, and are now included in authentication.browser-session-class (Authentication Settings)

Key Type Default Description Status

browser-session.custom-scheme-plain

string

Scheme to use instead of plain http when using browser session class CustomScheme, i.e. mibrowser.

advanced candidate

browser-session.custom-scheme-secure

string

Scheme to use instead of https when using browser session class CustomScheme, i.e. mibrowsers.

advanced candidate

Branding Parameters

Key Type Default Description Status

branding.app-name

string

App name to use throughout the app.

supported candidate

branding.disabled-import-methods

stringArray

List of disabled import methods that can’t be used.

Value

Description

file-provider

Disallow import through the File Provider (Files.app)

open-with

Disallow import through "Open with"

share-extension

Disallow import through the Share Extension

supported candidate

branding.organization-name

string

Organization name to use throughout the app.

supported candidate

Allow adding accounts

branding.can-add-account

bool

true

Controls whether the user can add accounts.

advanced candidate

Allow editing accounts

branding.can-edit-account

bool

true

Controls whether the user can edit accounts.

advanced candidate

branding.enable-review-prompt

bool

false

Controls whether the app should prompt for an App Store review. Only applies if the app is branded.

advanced candidate

Allow URL configuration

branding.profile-allow-url-configuration

bool

true

Indicates if the user can change the server URL for the account.

advanced candidate

Bookmark Name

branding.profile-bookmark-name

string

The name that should be used for the bookmark that’s generated from this profile and appears in the account list.

advanced candidate

Profile definitions

branding.profile-definitions

dictionaryArray

Array of dictionaries, each specifying a profile. All Profile keys can be used in the profile dictionaries.

advanced candidate

Onboarding button title

branding.profile-help-button-label

string

Text used for the onboarding button title

advanced candidate

Onboarding URL

branding.profile-help-url

urlString

Optional URL to onboarding resources.

advanced candidate

Open onboarding URL message

branding.profile-open-help-message

string

Message shown in an alert before opening the onboarding URL.

advanced candidate

URL

branding.profile-url

urlString

The URL of the server targeted by this profile.

advanced candidate

Feedback Email address

branding.send-feedback-address

string

Email address to send feedback to. Set to null to disable this feature.

advanced candidate

Feedback URL

branding.send-feedback-url

string

https://owncloud.com/ios-app-feedback

URL to open when selecting the "Send feedback" option. Allows the use of all placeholders provided in http.user-agent.

advanced candidate

Sidebar Link Items

branding.sidebar-links

array

Array of Dictionary, which should appear in the sidebar. Keys url and title are mandatory and an optional image can be added as either an SF-Symbol name (key: symbol) or the name of an image bundled with the app (key: image)

advanced candidate

Sidebar Links Title

branding.sidebar-links-title

string

Title for the sidebar links section.

advanced candidate

Theme Colors

branding.theme-colors

dictionary

Values to use in system-color-based themes for branded clients. Mutually exclusive with theme-definitions.

Key

Value

tint-color

Color to use as tint/accent color for controls (in hex notation).

branding-background-color

Color to use as background color for brand views (in hex notation).

setup-status-bar-style

The status bar style in the setup wizard, affecting the status bar text color. Can be either default, black or white.

file-icon-color

Color to fill file icons with (in hex notation).

folder-icon-color

Color to fill folder icons with (in hex notation).

advanced candidate

Theme CSS Records

branding.theme-css-records

stringArray

CSS records to add to the CSS space of system-color-based themes for branded clients. Mutually exclusive with theme-definitions.

advanced candidate

branding.theme-definitions

dictionaryArray

Array of dictionaries, each specifying a theme.

advanced candidate

Documentation URL

branding.url-documentation

urlString

https://doc.owncloud.com/ios-app/latest/

URL to documentation for the app. Opened when selecting "Documentation" in the settings.

advanced candidate

Help URL

branding.url-help

urlString

https://owncloud.com/docs-guides/

URL to get help for the app. Opened when selecting "Help" in the settings.

advanced candidate

Privacy URL

branding.url-privacy

urlString

https://owncloud.org/privacy-policy/

URL to get privacy information for the app. Opened when selecting "Privacy" in the settings.

advanced candidate

Terms of use URL

branding.url-terms-of-use

urlString

https://raw.githubusercontent.com/owncloud/ios-app/master/LICENSE

URL to terms of use for the app. Opened when selecting "Terms Of Use" in the settings.

advanced candidate

URL of the theme.json

branding.url-theme-json

urlString

URL of the instance theme.json file, which can contain instance or app specific branding parameter. Setting this to auto will construct the URL by adding themes/owncloud/theme.json to the respective server’s base address.

advanced candidate

branding.user-defaults-default-values

dictionary

Default values for user defaults. Allows overriding default settings.

advanced candidate

Build Options

The following build options are only available for configuring custom builds via the Branding.plist file. They can’t be configured dynamically wih MDM:

Key Type Default Description Status

build.app-group-identifier

string

Set a custom app group identifier via Branding.plist parameter. This value will be set by fastlane. Changes OCAppGroupIdentifier, OCKeychainAccessGroupIdentifier and updates other, directly signing-relevant parts of the Info.plist. With this value set, fastlane needs the provisioning profiles and certificate with the app group identifier. This is needed, if a customer is using an own resigning script which does not handle setting the app group identifier.

supported candidate

build.custom-app-scheme

string

owncloud

Name of the URL scheme to use for private links. Must be provided in Branding.plist at build time. For documentation, please see https://github.com/owncloud/ios-app/blob/master/doc/BUILD_CUSTOMIZATION.md.

supported candidate

build.custom-auth-scheme

string

oc

Name of the URL scheme to use for OAuth2/OIDC authentication. Must be provided in Branding.plist at build time. The authentication redirect URI parameters must also be changed accordingly in Branding.plist and on the server side. For documentation, please see https://github.com/owncloud/ios-app/blob/master/doc/BUILD_CUSTOMIZATION.md.

supported candidate

build.flags

string

A set of space separated flags to customize the build. Must be provided in Branding.plist at build time. For documentation, please see https://github.com/owncloud/ios-app/blob/master/doc/BUILD_CUSTOMIZATION.md.

supported candidate

build.oc-app-group-identifier

string

Set a custom app group identifier via Branding.plist parameter. This value will be set by fastlane. Changes OCAppGroupIdentifier, OCKeychainAccessGroupIdentifier only. Fastlane does not need the provisioning profile and certificate with the given app group identifer. Needs resigning with the correct provisioning profile and certificate. This is needed, if a customer is using an own resigning script which does not handle setting the app group identifier.

supported candidate

build.version-number

string

Sets a custom version number for the app.

supported candidate

Diagnostics

Key Type Default Description Status

diagnostics.enabled

bool

false

Controls whether additional diagnostic options and information is available throughout the user interface.

advanced candidate

Licensing

Key Type Default Description Status

licensing.disable-appstore-licensing

bool

false

Enables/disables App Store licensing support.

debugOnly

licensing.disable-enterprise-licensing

bool

false

Enables/disables Enterprise licensing support.

debugOnly

Localization feature

The localization feature allows to overwrite every string in the app, in every language.

Key Type Default Description Status

Localization Overrides

locale.overrides

dictionary

map[]

Dictionary with localization overrides where the key is the English string whose localization should be overridden, and the value is a dictionary where the keys are the language codes (f.ex. "en", "de") and the values the translations to use.

advanced candidate

Releasenotes

Key Type Default Description Status

releasenotes.lastSeenAppVersion

string

The last-seen app version.

debugOnly

releasenotes.lastSeenReleaseNotesVersion

string

The app version for which the release notes were last shown.

debugOnly

AppConfig XML Schema

The XML format, developed by AppConfig community, makes it easy for developers to define and deploy an app configuration. It not only supports configuration variables having default values, but also provides a configuration UI description, which can be interpreted by the tool and which generates a plist file. Moreover, specfile XML is consistently supported by major EMM vendors.

AppConfig conformant spec file tailored to administrator needs and containing one or more of the above settings can be easily created using Config Spec Creator tool hosted at AppConfig website.

Example: Deployment With MobileIron

  1. Open AppConfig Generator

  2. Upload a specfile.xml.

  3. Change the configuration options.

  4. Download the generated plist file (ManagedAppConfig).

  5. Open MobileIron Core.

  6. Navigate to Policies and Configs  Add New  Apple  iOS/tvOS  Managed App Config

  7. Upload the generated plist and specify name, bundle ID, and description

Example: Deployment With Jamf Pro

  1. Open AppConfig Generator

  2. Upload a specfile.xml.

  3. Change the configuration options.

  4. Copy Dictionary (button).

  5. Open Jamf Pro.

  6. Navigate to Devices  Mobile Device Apps  ownCloud - File Sync and Share  iOS/tvOS  App Configuration  Edit

  7. Paste the generated Dictionary into the "Preferences" field.