def users_with_user_principal_name(self,user_principal_name: str) -> UsersWithUserPrincipalNameRequestBuilder:
        """
        Provides operations to manage the collection of user entities.
        param user_principal_name: Alternate key of user
        Returns: UsersWithUserPrincipalNameRequestBuilder
        """
        if user_principal_name is None:
            raise TypeError("user_principal_name cannot be null.")
        from .users_with_user_principal_name.users_with_user_principal_name_request_builder import UsersWithUserPrincipalNameRequestBuilder

        return UsersWithUserPrincipalNameRequestBuilder(self.request_adapter, self.path_parameters, user_principal_name)

        Provides operations to manage the collection of user entities.
        param user_principal_name: Alternate key of user
        Returns: UsersWithUserPrincipalNameRequestBuilder
        
msgraph/generated/base_graph_service_client.py