When i am querying the "Select id,name from UserRole" then all roles are getting fetch with the system roles and created by user/admin/developer..
Is there any way to fetch the roles created by user/dev/admin.Please Suggest
When i am querying the "Select id,name from UserRole" then all roles are getting fetch with the system roles and created by user/admin/developer..
Is there any way to fetch the roles created by user/dev/admin.Please Suggest
Best Answer
An imperfect but probably workable solution:
If you want to see who is changing metadata such as Roles, go to
Setup | View Setup Audit Trail
You can go back 6 months in time. You'll get the SFDC username that, if you really care, can be cross-referenced to the User SObjects and admin versus user vs dev breakouts can be ascertained. The normal use case for this issue is "who made some system change?" and is typically a one-off.