I want to python code import to model builder, how can i do that?
I want to add this code to the model builder
>>> arcpy.DisconnectUser("Database Connections\\172.16.200.86_IPTAL_CBS-SA.sde", "ALL")
Im using arcmap 10.4.1
Put the code in a Python script file (*.py) and create a script tool with the py file as source (What is a script tool?—Help | ArcGIS for Desktop ). Then you can add the script tool to your model as an additional process.