Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm consuming a WCF Webservice with CRM Backend. All the users are stored in CRM. User can have different roles e.g. Supervisor, Team Leader etc.

I would like to use the asp.net User.Identity.Name or User.IsInRole etc. Could someone please advise how this can be achieved?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You'll need to use a Membership/Role provider that can query the CRM backend. There is an old implementation against CRM 2011 on CodePlex, that might work for you:

If that doesn't work, you'll have to create one yourself, the API is pretty straight forward, there are a number of existing questions here on StackOverflow that explain the process of creating and configuring a custom membership provider. See:

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.