最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

In dynamics 365 on premise how to find the Field Security Profiles that a particular field has write access? - Stack Overflow

programmeradmin3浏览0评论

I usually need to find the field security profiles that a particular field is part of and to achieve that I always go through all the Field Security profiles to check if the field is present. Is there any way to accomplish that quickly? Does anyone know any XRMToolbox plugin or even an SQL query?

I usually need to find the field security profiles that a particular field is part of and to achieve that I always go through all the Field Security profiles to check if the field is present. Is there any way to accomplish that quickly? Does anyone know any XRMToolbox plugin or even an SQL query?

Share Improve this question edited Feb 5 at 23:41 André Andrade asked Feb 5 at 23:01 André AndradeAndré Andrade 3133 silver badges14 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

After taking a look at the database using "SQL 4 CDS" XRMToolbox plugin, I could create this query that helped me to find what I was looking for.

SELECT 
    fsp.FieldSecurityProfileId 'Profile ID',
    fsp.Name AS 'Profile Name',
    fp.cancreatename AS 'Can Create',
    fp.canreadname AS 'Can Create',
    fp.canupdatename AS 'Can Update'
FROM 
    FieldSecurityProfile fsp
JOIN 
    FieldPermission fp ON fsp.FieldSecurityProfileId = fp.FieldSecurityProfileId
WHERE 
    fp.AttributeLogicalName = 'logical_name'  -- Replace with the logical name of your field
    AND fp.CanUpdate = 4  -- 4 indicates "Allowed" and 0 indicates "Not Allowed" in Field Security settings

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论