NOTE: don't use this method if you have alternate way to fix it by using any other user with clients.write scope
If you have removed uaa.admin scope from TKGi 'admin' user, here are the steps to fix it by db method
- bosh -d <pks...> ssh pks-db/0
- sudo su -
- mysql --socket=/var/vcap/sys/run/pxc-mysql/mysqld.sock -u uaa -p
- <password should be from TKGi tile 'Cf Mysql Uaa Db Password'>
- use uaa;