Answered by:
Differentiating bewteen admin and users

Question
-
how can, I differentiate between user and admin while calling a webservice for login..?Monday, January 20, 2014 8:11 AM
Answers
-
Check out WhoAmIRequest and potentially in conjunction with the code on this page
http://worldofdynamics.blogspot.com/2011/07/retrieve-user-security-roles-code.html
Retrieves the user
information for the logged on user.
- http://mileyja.blogspot.com/2011/06/get-current-user-id-and-organization-id.html (C#,
Silverlight) - http://mileyja.blogspot.com/2011/11/determine-user-id-guid-of-calling-user.html (JSCRIPT,
C#) - http://mileyja.blogspot.com/2011/12/determine-user-business-unit-and.html (
http://mileyja.blogspot.com/2011/12/determine-user-business-unit-and.html (VB.NET)
Jamie Miley
Check out RBA Today!
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Proposed as answer by Payman BiukaghazadehEditor Saturday, February 1, 2014 1:01 PM
- Marked as answer by Payman BiukaghazadehEditor Thursday, February 13, 2014 2:30 PM
Tuesday, January 21, 2014 6:55 PMModerator - http://mileyja.blogspot.com/2011/06/get-current-user-id-and-organization-id.html (C#,
All replies
-
When you registering a plugin you could register in the context of the administrator or the logged-in user. I think there is no need to handle this in the code.Monday, January 20, 2014 1:38 PMModerator
-
Check these http://worldofdynamics.blogspot.com/2011/07/retrieve-user-security-roles-code.html
https://community.dynamics.com/crm/b/crmmitchmilam/archive/2010/11/16/retreiving-user-roles-in-crm-2011.aspx
http://collowe.azurewebsites.net/?p=181
If my response helps you in finding your answer then please click 'Mark as Answer' and 'Vote as Helpful'
Monday, January 20, 2014 1:54 PM -
Check out WhoAmIRequest and potentially in conjunction with the code on this page
http://worldofdynamics.blogspot.com/2011/07/retrieve-user-security-roles-code.html
Retrieves the user
information for the logged on user.
- http://mileyja.blogspot.com/2011/06/get-current-user-id-and-organization-id.html (C#,
Silverlight) - http://mileyja.blogspot.com/2011/11/determine-user-id-guid-of-calling-user.html (JSCRIPT,
C#) - http://mileyja.blogspot.com/2011/12/determine-user-business-unit-and.html (
http://mileyja.blogspot.com/2011/12/determine-user-business-unit-and.html (VB.NET)
Jamie Miley
Check out RBA Today!
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Proposed as answer by Payman BiukaghazadehEditor Saturday, February 1, 2014 1:01 PM
- Marked as answer by Payman BiukaghazadehEditor Thursday, February 13, 2014 2:30 PM
Tuesday, January 21, 2014 6:55 PMModerator - http://mileyja.blogspot.com/2011/06/get-current-user-id-and-organization-id.html (C#,