def by_custom_security_attribute_definition_id(self,custom_security_attribute_definition_id: str) -> CustomSecurityAttributeDefinitionItemRequestBuilder:
        """
        Provides operations to manage the customSecurityAttributeDefinitions property of the microsoft.graph.directory entity.
        param custom_security_attribute_definition_id: The unique identifier of customSecurityAttributeDefinition
        Returns: CustomSecurityAttributeDefinitionItemRequestBuilder
        """
        if custom_security_attribute_definition_id is None:
            raise TypeError("custom_security_attribute_definition_id cannot be null.")
        from .item.custom_security_attribute_definition_item_request_builder import CustomSecurityAttributeDefinitionItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["customSecurityAttributeDefinition%2Did"] = custom_security_attribute_definition_id
        return CustomSecurityAttributeDefinitionItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the customSecurityAttributeDefinitions property of the microsoft.graph.directory entity.
        param custom_security_attribute_definition_id: The unique identifier of customSecurityAttributeDefinition
        Returns: CustomSecurityAttributeDefinitionItemRequestBuilder
        
msgraph/generated/directory/custom_security_attribute_definitions/custom_security_attribute_definitions_request_builder.py