1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="androidenterprise_v1.html">Google Play EMM API</a> . <a href="androidenterprise_v1.managedconfigurationsforuser.html">managedconfigurationsforuser</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#close">close()</a></code></p> 79<p class="firstline">Close httplib2 connections.</p> 80<p class="toc_element"> 81 <code><a href="#delete">delete(enterpriseId, userId, managedConfigurationForUserId, x__xgafv=None)</a></code></p> 82<p class="firstline">Removes a per-user managed configuration for an app for the specified user.</p> 83<p class="toc_element"> 84 <code><a href="#get">get(enterpriseId, userId, managedConfigurationForUserId, x__xgafv=None)</a></code></p> 85<p class="firstline">Retrieves details of a per-user managed configuration for an app for the specified user.</p> 86<p class="toc_element"> 87 <code><a href="#list">list(enterpriseId, userId, x__xgafv=None)</a></code></p> 88<p class="firstline">Lists all the per-user managed configurations for the specified user. Only the ID is set.</p> 89<p class="toc_element"> 90 <code><a href="#update">update(enterpriseId, userId, managedConfigurationForUserId, body=None, x__xgafv=None)</a></code></p> 91<p class="firstline">Adds or updates the managed configuration settings for an app for the specified user. If you support the Managed configurations iframe, you can apply managed configurations to a user by specifying an mcmId and its associated configuration variables (if any) in the request. Alternatively, all EMMs can apply managed configurations by passing a list of managed properties.</p> 92<h3>Method Details</h3> 93<div class="method"> 94 <code class="details" id="close">close()</code> 95 <pre>Close httplib2 connections.</pre> 96</div> 97 98<div class="method"> 99 <code class="details" id="delete">delete(enterpriseId, userId, managedConfigurationForUserId, x__xgafv=None)</code> 100 <pre>Removes a per-user managed configuration for an app for the specified user. 101 102Args: 103 enterpriseId: string, The ID of the enterprise. (required) 104 userId: string, The ID of the user. (required) 105 managedConfigurationForUserId: string, The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". (required) 106 x__xgafv: string, V1 error format. 107 Allowed values 108 1 - v1 error format 109 2 - v2 error format 110</pre> 111</div> 112 113<div class="method"> 114 <code class="details" id="get">get(enterpriseId, userId, managedConfigurationForUserId, x__xgafv=None)</code> 115 <pre>Retrieves details of a per-user managed configuration for an app for the specified user. 116 117Args: 118 enterpriseId: string, The ID of the enterprise. (required) 119 userId: string, The ID of the user. (required) 120 managedConfigurationForUserId: string, The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". (required) 121 x__xgafv: string, V1 error format. 122 Allowed values 123 1 - v1 error format 124 2 - v2 error format 125 126Returns: 127 An object of the form: 128 129 { # A managed configuration resource contains the set of managed properties defined by the app developer in the app's managed configurations schema, as well as any configuration variables defined for the user. 130 "configurationVariables": { # A configuration variables resource contains the managed configuration settings ID to be applied to a single user, as well as the variable set that is attributed to the user. The variable set will be used to replace placeholders in the managed configuration settings. # Contains the ID of the managed configuration profile and the set of configuration variables (if any) defined for the user. 131 "mcmId": "A String", # The ID of the managed configurations settings. 132 "variableSet": [ # The variable set that is attributed to the user. 133 { # A variable set is a key-value pair of EMM-provided placeholders and its corresponding value, which is attributed to a user. For example, $FIRSTNAME could be a placeholder, and its value could be Alice. Placeholders should start with a '$' sign and should be alphanumeric only. 134 "placeholder": "A String", # The placeholder string; defined by EMM. 135 "userValue": "A String", # The value of the placeholder, specific to the user. 136 }, 137 ], 138 }, 139 "kind": "A String", # Deprecated. 140 "managedProperty": [ # The set of managed properties for this configuration. 141 { # A managed property of a managed configuration. The property must match one of the properties in the app restrictions schema of the product. Exactly one of the value fields must be populated, and it must match the property's type in the app restrictions schema. 142 "key": "A String", # The unique key that identifies the property. 143 "valueBool": True or False, # The boolean value - this will only be present if type of the property is bool. 144 "valueBundle": { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the property is bundle. 145 "managedProperty": [ # The list of managed properties. 146 # Object with schema name: ManagedProperty 147 ], 148 }, 149 "valueBundleArray": [ # The list of bundles of properties - this will only be present if type of the property is bundle_array. 150 { # A bundle of managed properties. 151 "managedProperty": [ # The list of managed properties. 152 # Object with schema name: ManagedProperty 153 ], 154 }, 155 ], 156 "valueInteger": 42, # The integer value - this will only be present if type of the property is integer. 157 "valueString": "A String", # The string value - this will only be present if type of the property is string, choice or hidden. 158 "valueStringArray": [ # The list of string values - this will only be present if type of the property is multiselect. 159 "A String", 160 ], 161 }, 162 ], 163 "productId": "A String", # The ID of the product that the managed configuration is for, e.g. "app:com.google.android.gm". 164}</pre> 165</div> 166 167<div class="method"> 168 <code class="details" id="list">list(enterpriseId, userId, x__xgafv=None)</code> 169 <pre>Lists all the per-user managed configurations for the specified user. Only the ID is set. 170 171Args: 172 enterpriseId: string, The ID of the enterprise. (required) 173 userId: string, The ID of the user. (required) 174 x__xgafv: string, V1 error format. 175 Allowed values 176 1 - v1 error format 177 2 - v2 error format 178 179Returns: 180 An object of the form: 181 182 { 183 "managedConfigurationForUser": [ # A managed configuration for an app for a specific user. 184 { # A managed configuration resource contains the set of managed properties defined by the app developer in the app's managed configurations schema, as well as any configuration variables defined for the user. 185 "configurationVariables": { # A configuration variables resource contains the managed configuration settings ID to be applied to a single user, as well as the variable set that is attributed to the user. The variable set will be used to replace placeholders in the managed configuration settings. # Contains the ID of the managed configuration profile and the set of configuration variables (if any) defined for the user. 186 "mcmId": "A String", # The ID of the managed configurations settings. 187 "variableSet": [ # The variable set that is attributed to the user. 188 { # A variable set is a key-value pair of EMM-provided placeholders and its corresponding value, which is attributed to a user. For example, $FIRSTNAME could be a placeholder, and its value could be Alice. Placeholders should start with a '$' sign and should be alphanumeric only. 189 "placeholder": "A String", # The placeholder string; defined by EMM. 190 "userValue": "A String", # The value of the placeholder, specific to the user. 191 }, 192 ], 193 }, 194 "kind": "A String", # Deprecated. 195 "managedProperty": [ # The set of managed properties for this configuration. 196 { # A managed property of a managed configuration. The property must match one of the properties in the app restrictions schema of the product. Exactly one of the value fields must be populated, and it must match the property's type in the app restrictions schema. 197 "key": "A String", # The unique key that identifies the property. 198 "valueBool": True or False, # The boolean value - this will only be present if type of the property is bool. 199 "valueBundle": { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the property is bundle. 200 "managedProperty": [ # The list of managed properties. 201 # Object with schema name: ManagedProperty 202 ], 203 }, 204 "valueBundleArray": [ # The list of bundles of properties - this will only be present if type of the property is bundle_array. 205 { # A bundle of managed properties. 206 "managedProperty": [ # The list of managed properties. 207 # Object with schema name: ManagedProperty 208 ], 209 }, 210 ], 211 "valueInteger": 42, # The integer value - this will only be present if type of the property is integer. 212 "valueString": "A String", # The string value - this will only be present if type of the property is string, choice or hidden. 213 "valueStringArray": [ # The list of string values - this will only be present if type of the property is multiselect. 214 "A String", 215 ], 216 }, 217 ], 218 "productId": "A String", # The ID of the product that the managed configuration is for, e.g. "app:com.google.android.gm". 219 }, 220 ], 221}</pre> 222</div> 223 224<div class="method"> 225 <code class="details" id="update">update(enterpriseId, userId, managedConfigurationForUserId, body=None, x__xgafv=None)</code> 226 <pre>Adds or updates the managed configuration settings for an app for the specified user. If you support the Managed configurations iframe, you can apply managed configurations to a user by specifying an mcmId and its associated configuration variables (if any) in the request. Alternatively, all EMMs can apply managed configurations by passing a list of managed properties. 227 228Args: 229 enterpriseId: string, The ID of the enterprise. (required) 230 userId: string, The ID of the user. (required) 231 managedConfigurationForUserId: string, The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". (required) 232 body: object, The request body. 233 The object takes the form of: 234 235{ # A managed configuration resource contains the set of managed properties defined by the app developer in the app's managed configurations schema, as well as any configuration variables defined for the user. 236 "configurationVariables": { # A configuration variables resource contains the managed configuration settings ID to be applied to a single user, as well as the variable set that is attributed to the user. The variable set will be used to replace placeholders in the managed configuration settings. # Contains the ID of the managed configuration profile and the set of configuration variables (if any) defined for the user. 237 "mcmId": "A String", # The ID of the managed configurations settings. 238 "variableSet": [ # The variable set that is attributed to the user. 239 { # A variable set is a key-value pair of EMM-provided placeholders and its corresponding value, which is attributed to a user. For example, $FIRSTNAME could be a placeholder, and its value could be Alice. Placeholders should start with a '$' sign and should be alphanumeric only. 240 "placeholder": "A String", # The placeholder string; defined by EMM. 241 "userValue": "A String", # The value of the placeholder, specific to the user. 242 }, 243 ], 244 }, 245 "kind": "A String", # Deprecated. 246 "managedProperty": [ # The set of managed properties for this configuration. 247 { # A managed property of a managed configuration. The property must match one of the properties in the app restrictions schema of the product. Exactly one of the value fields must be populated, and it must match the property's type in the app restrictions schema. 248 "key": "A String", # The unique key that identifies the property. 249 "valueBool": True or False, # The boolean value - this will only be present if type of the property is bool. 250 "valueBundle": { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the property is bundle. 251 "managedProperty": [ # The list of managed properties. 252 # Object with schema name: ManagedProperty 253 ], 254 }, 255 "valueBundleArray": [ # The list of bundles of properties - this will only be present if type of the property is bundle_array. 256 { # A bundle of managed properties. 257 "managedProperty": [ # The list of managed properties. 258 # Object with schema name: ManagedProperty 259 ], 260 }, 261 ], 262 "valueInteger": 42, # The integer value - this will only be present if type of the property is integer. 263 "valueString": "A String", # The string value - this will only be present if type of the property is string, choice or hidden. 264 "valueStringArray": [ # The list of string values - this will only be present if type of the property is multiselect. 265 "A String", 266 ], 267 }, 268 ], 269 "productId": "A String", # The ID of the product that the managed configuration is for, e.g. "app:com.google.android.gm". 270} 271 272 x__xgafv: string, V1 error format. 273 Allowed values 274 1 - v1 error format 275 2 - v2 error format 276 277Returns: 278 An object of the form: 279 280 { # A managed configuration resource contains the set of managed properties defined by the app developer in the app's managed configurations schema, as well as any configuration variables defined for the user. 281 "configurationVariables": { # A configuration variables resource contains the managed configuration settings ID to be applied to a single user, as well as the variable set that is attributed to the user. The variable set will be used to replace placeholders in the managed configuration settings. # Contains the ID of the managed configuration profile and the set of configuration variables (if any) defined for the user. 282 "mcmId": "A String", # The ID of the managed configurations settings. 283 "variableSet": [ # The variable set that is attributed to the user. 284 { # A variable set is a key-value pair of EMM-provided placeholders and its corresponding value, which is attributed to a user. For example, $FIRSTNAME could be a placeholder, and its value could be Alice. Placeholders should start with a '$' sign and should be alphanumeric only. 285 "placeholder": "A String", # The placeholder string; defined by EMM. 286 "userValue": "A String", # The value of the placeholder, specific to the user. 287 }, 288 ], 289 }, 290 "kind": "A String", # Deprecated. 291 "managedProperty": [ # The set of managed properties for this configuration. 292 { # A managed property of a managed configuration. The property must match one of the properties in the app restrictions schema of the product. Exactly one of the value fields must be populated, and it must match the property's type in the app restrictions schema. 293 "key": "A String", # The unique key that identifies the property. 294 "valueBool": True or False, # The boolean value - this will only be present if type of the property is bool. 295 "valueBundle": { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the property is bundle. 296 "managedProperty": [ # The list of managed properties. 297 # Object with schema name: ManagedProperty 298 ], 299 }, 300 "valueBundleArray": [ # The list of bundles of properties - this will only be present if type of the property is bundle_array. 301 { # A bundle of managed properties. 302 "managedProperty": [ # The list of managed properties. 303 # Object with schema name: ManagedProperty 304 ], 305 }, 306 ], 307 "valueInteger": 42, # The integer value - this will only be present if type of the property is integer. 308 "valueString": "A String", # The string value - this will only be present if type of the property is string, choice or hidden. 309 "valueStringArray": [ # The list of string values - this will only be present if type of the property is multiselect. 310 "A String", 311 ], 312 }, 313 ], 314 "productId": "A String", # The ID of the product that the managed configuration is for, e.g. "app:com.google.android.gm". 315}</pre> 316</div> 317 318</body></html>