def METHOD_NAME(service, groupId, settings):
    """Retrieves a group's settings and updates the access permissions to it.
    Args:
      service: object service for the Group Settings API.
      groupId: string identifier of the group@domain.
      settings: dictionary key-value pairs of properties of group.
    """
    # Get the resource 'group' from the set of resources of the API.
    # The Group Settings API has only one resource 'group'.
    group = service.groups()
    # Retrieve the group properties
    g = group.get(groupUniqueId=groupId).execute()
    print("\nGroup properties for group %s\n" % g["name"])
    pprint.pprint(g)
    # If dictionary is empty, return without updating the properties.
    if not settings.keys():
        print("\nGive access parameters to update group access permissions\n")
        return
    body = {}
    # Settings might contain null value for some keys(properties).
    # Extract the properties with values and add to dictionary body.
    for key in settings.iterkeys():
        if settings[key] is not None:
            body[key] = settings[key]
    # Update the properties of group
    g1 = group.update(groupUniqueId=groupId, body=body).execute()
    print("\nUpdated Access Permissions to the group\n")
    pprint.pprint(g1)