How to add user on sharepoint group permission through command or Code

Y

yatin

Hello friend,

I am looking the command or code for adding the user & user permission
on sharepoint group. Is there are any way to add user through command?
While I am trying to use Stsadm -adduser command, not working for
sharepoint site.
Thanks in advance.

Regards,
Yatin
 
Top