:doc:`SSOAdmin <../../sso-admin>` / Client / put_application_assignment_configuration

****************************************
put_application_assignment_configuration
****************************************



.. py:method:: SSOAdmin.Client.put_application_assignment_configuration(**kwargs)

  

  Configure how users gain access to an application. If ``AssignmentsRequired`` is ``true`` (default value), users don’t have access to the application unless an assignment is created using the `CreateApplicationAssignment API <https://docs.aws.amazon.com/singlesignon/latest/APIReference/API_CreateApplicationAssignment.html>`__. If ``false``, all users have access to the application. If an assignment is created using `CreateApplicationAssignment <https://docs.aws.amazon.com/singlesignon/latest/APIReference/API_CreateApplicationAssignment.html>`__., the user retains access if ``AssignmentsRequired`` is set to ``true``.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sso-admin-2020-07-20/PutApplicationAssignmentConfiguration>`_  


  **Request Syntax**
  ::

    response = client.put_application_assignment_configuration(
        ApplicationArn='string',
        AssignmentRequired=True|False
    )
    
  :type ApplicationArn: string
  :param ApplicationArn: **[REQUIRED]** 

    Specifies the ARN of the application. For more information about ARNs, see `Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces </general/latest/gr/aws-arns-and-namespaces.html>`__ in the *Amazon Web Services General Reference*.

    

  
  :type AssignmentRequired: boolean
  :param AssignmentRequired: **[REQUIRED]** 

    If ``AssignmentsRequired`` is ``true`` (default value), users don’t have access to the application unless an assignment is created using the `CreateApplicationAssignment API <https://docs.aws.amazon.com/singlesignon/latest/APIReference/API_CreateApplicationAssignment.html>`__. If ``false``, all users have access to the application.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`SSOAdmin.Client.exceptions.ThrottlingException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.InternalServerException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.ValidationException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.ConflictException`

  