前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >使用Authorization scope对SAP CRM附件模型进行权限控制

使用Authorization scope对SAP CRM附件模型进行权限控制

作者头像
Jerry Wang
发布2020-08-10 11:27:08
4010
发布2020-08-10 11:27:08
举报

The attachment authorization control could be implemented with the help of authorization scope. When you create an attachment via the Attachment button provided in attachment assignment block, you could also assign a given authorization scope for it. Once the scope is maintained and the attachment is saved, it could never be changed any more.

The possible values of authorization scope could be maintained via customizing SPRO->Customer Relationship Management->Transactions->Basic settings->Define Authorization scope for Attachments.

For authorization domain, you should use exactly the same spelling as “ATTACHMENT”, as is defined in constant CL_CRM_SFW_ITSM_SWITCH_CHECK=>gc_auth_domain. And just use SAP predefined class CL_CRM_AUTH_SCOPE_STATIC_CHK.

Then you can maintain the authorization scope values:

In the runtime, the authorization domain “ATTACHMENT” together with the authorization scope of current attachment will be evaluated by the view controller of attachment assignment block view: if authorization check fails for current user, the attachment being evaluated will not appear in the attachment assignment block.

The authorization check is done via check against authorization object CRM_AUTHSC:

if you need to view what authorization is granted to your user, you can execute report RSUSR070, specify Authorization Object as CRM_AUTHSC:

The report result shows that authorization is included in four roles, double click one of them:

click “Authorizations” tab and click display button:

Use search function:

The result indicates that my user in our dev system has authorization to create, display, change and delete on attachments belonging to any authorization domain & scope.

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2020-08-08 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档