You need to sign in to do that
Don't have an account?
hcri50
Can I create a test user without a license?
How can I create a user at a different access level for testing purposes please?
Everyime I want to create a user for testing purposes, it tells me that I need to create a license.
robert
thank you very much for your replies,
robert
All Answers
Can you post a code sample of the situation in which you're getting this message?
Are you referring to creating a User in Test Code, or just for "general" testing (i.e. actually creating a new User record)?
Here is some code for creating a User at a specified Profile in Test Code:
Also, if you're in test code and its telling you that you're out of licenses, increase the API version of your Apex class --- I believe some really old (i.e. Winter 10 or earlier) version of Salesforce wouldn't let you create new users in test code unless you had actual licenses for them. But this has long since been fixed.
thank you very much for your replies,
robert