You need to sign in to do that
Don't have an account?

Organization administrator email
Hey,
I am trying to get the Administrator's email for the given organization from within Apex code. How can I get it?
Is it always gauranteed to be there?
It seems to me that there should always be one because when you first register you use a valid real email address which becomes the Admin users for that organization. Later on you can configure sub account that may or may not correlate to real addresses... am I missing something?
Thanks!
not really sure what you mean here but you could run some kind of soql query on user object for the sys admin profile id
SELECT Id,Email FROM User WHERE Profile.Name = 'System Administrator'
Hey,
But then what if you have a couple Users under the "System Administrator" role? and how do I know which one has a valid email address?
I am just trying to get a email address of the ORG administrator (a valid email address).
Thanks
I would imagine that the User I am after is the one that was initially used to register for the ORG account because that requires a valid and real email address. Is there a way to get that particular user?