function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mark CrooksMark Crooks 

Cannot log in to developer account with additional user

I've created an individual user developer account, set up some data and created a mobile app that can log in and query the data successfully.
Back on developer.salesforce.com I've created a new User and assigned them User Licence:Salesforce, Profile:System Administrator.

Using my app I'm unable to log in using the new account.
faultstring INVALID_LOGIN: Invalid username, password, security token; or user locked out.

I'm 100% sure I'm setting the correct username and password, and the security token is the same one used for the original working account.

Would anyone have any ideas on why this account is being locked out?

Thanks,

Mark
 
Best Answer chosen by Mark Crooks
Sforce.NinjaSforce.Ninja
Hey Mark,
Every user has a separate security token. Did you generate a new security token for the new user? 

This link will help you generate a new token 
https://help.salesforce.com/apex/HTViewHelpDoc?id=user_security_token.htm

Please mark the answer as best if it helps you.
Cheers
Sid

All Answers

Sforce.NinjaSforce.Ninja
Hey Mark,
Every user has a separate security token. Did you generate a new security token for the new user? 

This link will help you generate a new token 
https://help.salesforce.com/apex/HTViewHelpDoc?id=user_security_token.htm

Please mark the answer as best if it helps you.
Cheers
Sid
This was selected as the best answer
Mark CrooksMark Crooks
Bingo! Thanks for taking the time to reply.
Mark CrooksMark Crooks
Just following on from this, it appears that the secondary account can only query custom fields when the account is assigned the System Administrator profile. Is that the expected behavior?

I get the following error if any other profile is set:
sObject type 'Customer__c' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. 

Thanks,

Mark
Sforce.NinjaSforce.Ninja
Hey Mark,
That is definately not a expected behaviour. System Administrator profile is like a God-mode in computer games. You can do a lot of damage and have free-access throughout the system. But what a custom profile or any other profile can see or not see depends on a large set of variables and a matrix of security components and cannot be answered based on limited data.
Ill recommend you go through the Security Implementation Guide I have linked below, it is a big document but it will help you investigate why the profile cannot see the object.

https://help.salesforce.com/help/pdfs/en/salesforce_security_impl_guide.pdf
Mark CrooksMark Crooks
OK, diving in now. Thanks again for replying.