I am not sure where you are stuck Try this:
• Inventory is maintained in the InventSum table which joins to the InventDim which contains dimension information such as warehouse/location/serial # etc…
• The table to restrict the data is the InventDim table which is where you find the warehouse/location combination
• Create a new Shared Project. Name it e.g. ‘RestrictWH’.
• Right-click on the Project and go to New Query.
• Rename the Query e.g. ‘Restrict_WH_Loc’.
• This query name will later be specified in the Security Policy AOT object’s properties.
• Add the InventDim table to the Query –
• Set the Fields node’s Dynamics property to Yes.
• Add 2 ranges: for InventLocationId, and for wMSLocationId.
• To restrict warehouse and location set the Value property for those on both Ranges.
• Save and compile the query.
• Right click on the Project node
• Go to New -> Security -> Security Policy.
• Name it ‘Restrict_WH_Loc’.
• Setup the Properties
• E.g. the users assigned to the WH-A-1 Role will be restricted from viewing on-hand inventory in Warehouse A - Location 1.
• Right click on the Constrained Tables node and add the InventSum table
• Users who are assigned to whichever Role is specified in the RoleName property will be impacted by the policy restriction.
• Save and compile the new Security Policy.
• Close AX, and log back in as Admin.
• Go to System Administration -> Users.
• Lookup the user and assign the Role to the user.
(Note: this user will also need other Roles to allow viewing of the on-hand inventory form. See for example patrickhawker.wordpress.com/.../ax-2012-security)
Close AX.
Log back in to the AX client, to see the Security Policy is in effect for the user.