Question

When a user runs an on-demand workflow in Microsoft CRM 2011, is it possible to access their credentials?

I am creating a custom workflow activity designed to access a sharepoint server with shared Active Directory accounts. I would like to be able to use the user who runs the on-demand workflow's credentials for Sharepoint authentication. Is it possible to access these credentials in custom code? If so, how (C# if possible)?

Was it helpful?

Solution

Unfortunately it is possible to get the credentials but you won't be able to use them to authenticate to the Sharepoint Server, at least in the online versions.

We had a similar scenario but in the end we had to use a special user to do all the work in sharepoint, we were triggering the code with a plugin and using the REST Endpoint to do the work.

You can access the the User Credentials from the localContext, but you won't be able to retrieve the password.

Is your environment onpremise or online?/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top