# Google Play EMM API . managedconfigurationsforuser

## Instance Methods

Removes a per-user managed configuration for an app for the specified user.

Retrieves details of a per-user managed configuration for an app for the

Lists all the per-user managed configurations for the specified user. Only

Adds or updates the managed configuration settings for an app for the

### Method Details

`delete(enterpriseId, userId, managedConfigurationForUserId, x__xgafv=None)`

    Removes a per-user managed configuration for an app for the specified user.

    Args:
      enterpriseId: string, The ID of the enterprise. (required)
      userId: string, The ID of the user. (required)
      managedConfigurationForUserId: string, The ID of the managed configuration (a product ID), e.g.
    "app:com.google.android.gm". (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

`get(enterpriseId, userId, managedConfigurationForUserId, x__xgafv=None)`

    Retrieves details of a per-user managed configuration for an app for the
    specified user.

    Args:
      enterpriseId: string, The ID of the enterprise. (required)
      userId: string, The ID of the user. (required)
      managedConfigurationForUserId: string, The ID of the managed configuration (a product ID), e.g.
    "app:com.google.android.gm". (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # 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.
        "productId": "A String", # The ID of the product that the managed configuration is for, e.g.
            # "app:com.google.android.gm".
        "configurationVariables": { # A configuration variables resource contains the managed configuration # Contains the ID of the managed configuration profile and the set of
            # configuration variables (if any) defined for the user.
            # 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.
          "mcmId": "A String", # The ID of the managed configurations settings.
          "variableSet": [ # The variable set that is attributed to the user.
            { # 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.
              "userValue": "A String", # The value of the placeholder, specific to the user.
              "placeholder": "A String", # The placeholder string; defined by EMM.
            },
          ],
        },
        "managedProperty": [ # The set of managed properties for this configuration.
          { # 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.
            "valueInteger": 42, # The integer value - this will only be present if type of the property is
                # integer.
            "valueBool": True or False, # The boolean value - this will only be present if type of the property is
                # bool.
            "valueString": "A String", # The string value - this will only be present if type of the property is
                # string, choice or hidden.
            "valueBundle": { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the
                # property is bundle.
              "managedProperty": [ # The list of managed properties.
                # Object with schema name: ManagedProperty
              ],
            },
            "valueBundleArray": [ # The list of bundles of properties - this will only be present if type of
                # the property is bundle_array.
              { # A bundle of managed properties.
                "managedProperty": [ # The list of managed properties.
                  # Object with schema name: ManagedProperty
                ],
              },
            ],
            "valueStringArray": [ # The list of string values - this will only be present if type of the
                # property is multiselect.
              "A String",
            ],
            "key": "A String", # The unique key that identifies the property.
          },
        ],
        "kind": "A String", # Deprecated.
      }

`list(enterpriseId, userId, x__xgafv=None)`

    Lists all the per-user managed configurations for the specified user. Only
    the ID is set.

    Args:
      enterpriseId: string, The ID of the enterprise. (required)
      userId: string, The ID of the user. (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        {
        "managedConfigurationForUser": [ # A managed configuration for an app for a specific user.
          { # 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.
            "productId": "A String", # The ID of the product that the managed configuration is for, e.g.
                # "app:com.google.android.gm".
            "configurationVariables": { # A configuration variables resource contains the managed configuration # Contains the ID of the managed configuration profile and the set of
                # configuration variables (if any) defined for the user.
                # 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.
              "mcmId": "A String", # The ID of the managed configurations settings.
              "variableSet": [ # The variable set that is attributed to the user.
                { # 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.
                  "userValue": "A String", # The value of the placeholder, specific to the user.
                  "placeholder": "A String", # The placeholder string; defined by EMM.
                },
              ],
            },
            "managedProperty": [ # The set of managed properties for this configuration.
              { # 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.
                "valueInteger": 42, # The integer value - this will only be present if type of the property is
                    # integer.
                "valueBool": True or False, # The boolean value - this will only be present if type of the property is
                    # bool.
                "valueString": "A String", # The string value - this will only be present if type of the property is
                    # string, choice or hidden.
                "valueBundle": { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the
                    # property is bundle.
                  "managedProperty": [ # The list of managed properties.
                    # Object with schema name: ManagedProperty
                  ],
                },
                "valueBundleArray": [ # The list of bundles of properties - this will only be present if type of
                    # the property is bundle_array.
                  { # A bundle of managed properties.
                    "managedProperty": [ # The list of managed properties.
                      # Object with schema name: ManagedProperty
                    ],
                  },
                ],
                "valueStringArray": [ # The list of string values - this will only be present if type of the
                    # property is multiselect.
                  "A String",
                ],
                "key": "A String", # The unique key that identifies the property.
              },
            ],
            "kind": "A String", # Deprecated.
          },
        ],
      }

`update(enterpriseId, userId, managedConfigurationForUserId, body=None, x__xgafv=None)`

    Adds or updates the managed configuration settings for an app for the
    specified user.
    If you support the <a
    href="https://developers.google.com/android/work/play/emm-api/managed-configurations-iframe">Managed
    configurations iframe</a>,
    you can apply managed configurations to a user by specifying an
    <code>mcmId</code>
    and its associated configuration variables (if any) in the request.
    Alternatively,
    all EMMs can apply managed configurations by passing a list of managed
    properties.

    Args:
      enterpriseId: string, The ID of the enterprise. (required)
      userId: string, The ID of the user. (required)
      managedConfigurationForUserId: string, The ID of the managed configuration (a product ID), e.g.
    "app:com.google.android.gm". (required)
      body: object, The request body.
        The object takes the form of:

    { # 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.
      "productId": "A String", # The ID of the product that the managed configuration is for, e.g.
          # "app:com.google.android.gm".
      "configurationVariables": { # A configuration variables resource contains the managed configuration # Contains the ID of the managed configuration profile and the set of
          # configuration variables (if any) defined for the user.
          # 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.
        "mcmId": "A String", # The ID of the managed configurations settings.
        "variableSet": [ # The variable set that is attributed to the user.
          { # 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.
            "userValue": "A String", # The value of the placeholder, specific to the user.
            "placeholder": "A String", # The placeholder string; defined by EMM.
          },
        ],
      },
      "managedProperty": [ # The set of managed properties for this configuration.
        { # 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.
          "valueInteger": 42, # The integer value - this will only be present if type of the property is
              # integer.
          "valueBool": True or False, # The boolean value - this will only be present if type of the property is
              # bool.
          "valueString": "A String", # The string value - this will only be present if type of the property is
              # string, choice or hidden.
          "valueBundle": { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the
              # property is bundle.
            "managedProperty": [ # The list of managed properties.
              # Object with schema name: ManagedProperty
            ],
          },
          "valueBundleArray": [ # The list of bundles of properties - this will only be present if type of
              # the property is bundle_array.
            { # A bundle of managed properties.
              "managedProperty": [ # The list of managed properties.
                # Object with schema name: ManagedProperty
              ],
            },
          ],
          "valueStringArray": [ # The list of string values - this will only be present if type of the
              # property is multiselect.
            "A String",
          ],
          "key": "A String", # The unique key that identifies the property.
        },
      ],
      "kind": "A String", # Deprecated.
    }

      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # 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.
        "productId": "A String", # The ID of the product that the managed configuration is for, e.g.
            # "app:com.google.android.gm".
        "configurationVariables": { # A configuration variables resource contains the managed configuration # Contains the ID of the managed configuration profile and the set of
            # configuration variables (if any) defined for the user.
            # 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.
          "mcmId": "A String", # The ID of the managed configurations settings.
          "variableSet": [ # The variable set that is attributed to the user.
            { # 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.
              "userValue": "A String", # The value of the placeholder, specific to the user.
              "placeholder": "A String", # The placeholder string; defined by EMM.
            },
          ],
        },
        "managedProperty": [ # The set of managed properties for this configuration.
          { # 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.
            "valueInteger": 42, # The integer value - this will only be present if type of the property is
                # integer.
            "valueBool": True or False, # The boolean value - this will only be present if type of the property is
                # bool.
            "valueString": "A String", # The string value - this will only be present if type of the property is
                # string, choice or hidden.
            "valueBundle": { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the
                # property is bundle.
              "managedProperty": [ # The list of managed properties.
                # Object with schema name: ManagedProperty
              ],
            },
            "valueBundleArray": [ # The list of bundles of properties - this will only be present if type of
                # the property is bundle_array.
              { # A bundle of managed properties.
                "managedProperty": [ # The list of managed properties.
                  # Object with schema name: ManagedProperty
                ],
              },
            ],
            "valueStringArray": [ # The list of string values - this will only be present if type of the
                # property is multiselect.
              "A String",
            ],
            "key": "A String", # The unique key that identifies the property.
          },
        ],
        "kind": "A String", # Deprecated.
      }