I am using vSphere 5 java SDK for provision vmware. I could able to create Linux vmware. But I want to create users inside the newly created Guest vmware?
Is there any API to create users?
Such an API does not exist. This needs to be handled outside of the vSphere framework itself. Using a follow-on script to handle post-startup config is a pretty solid way of handling further customizations needed.
This should be possible using the StartProgramInGuest method in GuestProcessManager.
See this tread for an example: