AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 04.09.2024, 01:00   #1  
Blog bot is offline
Blog bot
Участник
 
25,607 / 848 (80) +++++++
Регистрация: 28.10.2006
alirazazaidi: Write Extensible Data Security (XDS) in Dynamics 365 Finance and Operation
Источник: https://www.tech.alirazazaidi.com/wr...and-operation/
==============

In D365, with Role based security we can restrict specific operations
to Certain user. Role based security will restrict the menu, forms and report.
It did not restrict certain records to view.

For example, They want to see only vendor with certain vendor group.
Customer for certain key market.
For this blog post, there is scenario that end user can be his created sales order.
For this requirement, we can use [[Extensible Data Security (XSD)]].

For this we require three elements.

AOT query.
Security Policy
And last one is Security Role.

First we create AOT Query and add Sales table and inner join with userInfo Table and make join with userInfo.Id with SalesTable.CreatedBy

Then add range in UserInfo and add (CurrentUserId())

Now Create a new role. That will used in Security policy and later used for End user.

Now add a new Security policy



and set following properties.

Set following properties.

Constraint Table Yes
Context Type RoleName

Operations All Operations

Primary Table set as SalesTable

Query set the name of Query

Set Role Name with Role we created in above role.

Build and Sync Database.

Open D365 Finance and Operations goes and Userinfo in System Administrator and assign to specific end user.
Remember, that either assign, Sales Clerk role or Sales Manager role.
Extensible Data Security (XDS) is not working for system administrator role.

Sales order list will comes with sales order with filter.





Источник: https://www.tech.alirazazaidi.com/wr...and-operation/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
sertandev: How to integrate with Dynamics 365 for Finance and Operations Blog bot DAX Blogs 0 21.08.2020 15:12
alirazazaidi: Number Sequence framework webcast Part 2 -Demo Dynamics 365 for finance and operation Blog bot DAX Blogs 0 12.11.2018 21:12
stoneridgesoftware: Copying Data into a New Legal Entity on Dynamics 365 for Finance and Operations Blog bot DAX Blogs 0 04.04.2018 21:11
alirazazaidi: Introductory session to Dynamics 365 for finance and operation, PowerPoint slides and pictures Blog bot DAX Blogs 0 19.02.2018 07:14
powerobjects: Dynamics 365 for Finance & Operations: Security Blog bot DAX Blogs 1 24.01.2018 12:45

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 20:23.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.