Currently there is no way to manage account security settings or team users in a programmatically way.
None of DO's API, doctl and terraform can manage that at the moment and it can only be done via the admin panel.
It would be really interesting to manage users and security settings via terraform to automate access control to DO account.