# Restricting warehouse for users - D365 For Fin & Ops

**URL:** <https://www.dynamicsuser.net/t/restricting-warehouse-for-users-d365-for-fin-ops/67733>\
**Category:** Technical Forum\
**Created:** [April 17, 2020, 1:21pm UTC](https://www.dynamicsuser.net/t/restricting-warehouse-for-users-d365-for-fin-ops/67733 "2020-04-17T13:21:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lalit.jivnani](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@lalit.jivnani](https://www.dynamicsuser.net/u/lalit.jivnani)\
**Post date:** [April 17, 2020, 1:21pm UTC](https://www.dynamicsuser.net/t/restricting-warehouse-for-users-d365-for-fin-ops/67733/1 "2020-04-17T13:21:17Z")

</div>

Hi All,

I have a requirement where certain users log in, they should be able to see the data only for specific warehouses.

For example, when they open the purchase orders, the lines with specific assigned warehouse only should be visible to them or they should be able to add new lines with the assigned warehouses.

I have already implemented the XDS policy for that and i am able to restrict the data visible to users.

But when user is trying to add new line, we are getting below shown error:

![pastedimage1587129284438v1.png](https://us1.discourse-cdn.com/flex023/uploads/dugusers/original/2X/8/811852c8f8e4c765d6c0d3ce960feee4ce74bb33.png)

Currently I have added InventDim and Purchline as constraint tables and set Constrained property to Yes for both these tables.

Even i tried to change the Constrained property with different combinations but still unable to achieve that.

Can anyone help me in achieving this.

---

<div class="post-metadata">

**Author:** ![ahmad.saify](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@ahmad.saify](https://www.dynamicsuser.net/u/ahmad.saify)\
**Post date:** [May 11, 2020, 7:22am UTC](https://www.dynamicsuser.net/t/restricting-warehouse-for-users-d365-for-fin-ops/67733/2 "2020-05-11T07:22:04Z")

</div>

can you share your query that you are using for the XDS Policy

---

<div class="post-metadata">

**Author:** ![Alaeldin](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@Alaeldin](https://www.dynamicsuser.net/u/Alaeldin)\
**Post date:** [July 12, 2021, 6:02am UTC](https://www.dynamicsuser.net/t/restricting-warehouse-for-users-d365-for-fin-ops/67733/3 "2021-07-12T06:02:11Z")

</div>

Hi Lalit,

im trying to apply user restriction by warehouse, can you help us to figure out how we can make it ? its will be kind if you share your XDS policy.

---

<div class="post-metadata">

**Author:** ![S\_Mehdi](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@S\_Mehdi](https://www.dynamicsuser.net/u/S_Mehdi)\
**Post date:** [September 6, 2023, 2:02pm UTC](https://www.dynamicsuser.net/t/restricting-warehouse-for-users-d365-for-fin-ops/67733/4 "2023-09-06T14:02:02Z")

</div>

Hello,  
Did you find a solution for that, i am in the same issue, very interested to see how you could resolve the problem

Thanks in advance
