+ Start a Discussion
sai.sfsai.sf 

Create User from apex code

Is it possible to create user from apex code(batch apex) and also insert the permission set  and then send an email to the user

Santhosh KumarSanthosh Kumar

I don't see why not. Did you try and got into any errors? 

 

Please be aware of the issue that you can perform DML on Setup object and Non-Setup object in same transaction. Search the web for more info.