Are you familiar with the record function on the admin console?
It'll record the wlst commands whatever changes you make (except deployments for some reason).
Thanks for the response.
But I have read here in Oracle KB that for some reasons WLST recording functionality does not work for Security Roles changes of a Provider. But still I will give it a try.