web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Very actual problem (workflows & security roles)

(0) ShareShare
ReportReport
Posted on by 2,215

Hi, I face such problem, please advise how to solve it:

I have  USER A and USER B. For the  USER A defined such roles, which do not allow to see or edit USER B's actions (e.g. tasks). Now in the system I have a workflow which from the Opportunity ( owner is USER A) automatically creats a task for the USER B (task's owner is USER B), but in this case USER A can see and edit this task, although he should not be able to.

 

 Thank you in advance

*This post is locked for comments

I have the same question (0)
  • Mandar Joshi Profile Picture
    2,116 on at

    This the default behavior of CRM. It creates a record in context of the user who is the owner of the work flow. The work around that can help you is to trigger all the work flows from a common (nonuser) account (say service account) and in the work flow set the appropriate owner for the task.    

  • Mary GH Profile Picture
    2,215 on at

    Thanks a lot.

  • Mary GH Profile Picture
    2,215 on at

    Hi Mandar, can you clarify your post. Do you mean by selecting Organization as the scope, the workflow will execute on any record in the organization secondary to the user’s security rights?

    info.profad.com/.../Defining-Scope-using-Workflows-in-Microsoft-Dynamics-CRM-2011

     

    I've selected Organization as the scop in the workflow, but it doesn't help me.

     

    Thanks.

  • Mandar Joshi Profile Picture
    2,116 on at

    What user are you using as owner of workflow? And Yes, the workflow will execute for every record in organization.

  • Mary GH Profile Picture
    2,215 on at

    I use mine as owner of workflow. I did not understand what you mean by saying common (nonuser) account (say service account).

  • Mandar Joshi Profile Picture
    2,116 on at

    Ok. Let me try to explain this out. You are the owner of the workflow. Now though other user B creates a opportunity record which triggers this workflow, the task will be visible to you as it was created in your context. To avoid this, use some other system administrator account as owner of the workflow, and inside the workflow add a step which will set the owner of the task to the user who created the opportunity record.

  • Mary GH Profile Picture
    2,215 on at

    In the system I have a system administrator's privileges and I trigger workflow from the USER A account.

  • Mohammad Atif Profile Picture
    on at

    Can you please refer msdn.microsoft.com/.../gg309471.aspx if this is helpful in this scenario

    Thanks,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans