You need to sign in to do that
Don't have an account?
Subhash Pal 17
I am free user developer edition
want to add new user using Apex I have try for it but new user dosnt get display with other user
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
OR please check if there is no error while creating the user.
The only thing missing in the above code is the INSERT functionality which is used to insert the User.
Please find the below code.
Let me know if it helps you.
Regards,
Onesh.K
Can you try selecting the User list view, If not also try by clicking the letters at bottom right on the reference pic below.
Regards,
Onesh.K
If you are in Free Developer Edition then you can have only 2 Salesforce Licenses.
I tried the below code in Developer Console:
and got below error:
Here you can try 2 things:
(1) Try to de-activate all existing users except the admin user and try to execute the above code in Developer Console. It will create the user and you can able to find it in both debug log and users list.
(2) Change the code as below and it will create the user always:
Make sure that the User Name is unique all the time. If you run it in the Developer Console for sure you will get the proper error message.
Note: I tried the above slutions in my Developer Org and they are working as expected.
Please do let me know if it solves your issue.
Regards,
Mahesh