Query Users By Role
query by id
Copy the UserRole Id like '00EXXXXXXXXXXXXX'.
SELECT Id, Name FROM User WHERE UserRole.Id = '00EXXXXXXXXXXXXX'
query by name
Copy the UserRole Name like 'CEO'.
SELECT Id, Name FROM User WHERE UserRole.Name = 'CEO'
Query Users By Role
query by id
Copy the UserRole Id like '00EXXXXXXXXXXXXX'.
SELECT Id, Name FROM User WHERE UserRole.Id = '00EXXXXXXXXXXXXX'
query by name
Copy the UserRole Name like 'CEO'.
SELECT Id, Name FROM User WHERE UserRole.Name = 'CEO'
Comments
Post a Comment