<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Authorizations for Office Documents in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorizations-for-office-documents/m-p/2955900#M697244</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible to control the access to office documents that can be created/deleted/modified that is used in "Attachment List" (for instance, in a FI document viewed in transaction FB03) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is is possible to control what actions can be executed by a user ? (for instance, don't give the delete access)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've search for possible authorization objects and find two that are use in standard authorizations checks, but the second object only checks if the actual user is a Administrator (that can perform any operation) or the attach owner:&lt;/P&gt;&lt;P&gt;S_OC_DOC&lt;/P&gt;&lt;P&gt;S_OC_ROLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Nuno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2007 22:12:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-10T22:12:18Z</dc:date>
    <item>
      <title>Authorizations for Office Documents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorizations-for-office-documents/m-p/2955900#M697244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible to control the access to office documents that can be created/deleted/modified that is used in "Attachment List" (for instance, in a FI document viewed in transaction FB03) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is is possible to control what actions can be executed by a user ? (for instance, don't give the delete access)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've search for possible authorization objects and find two that are use in standard authorizations checks, but the second object only checks if the actual user is a Administrator (that can perform any operation) or the attach owner:&lt;/P&gt;&lt;P&gt;S_OC_DOC&lt;/P&gt;&lt;P&gt;S_OC_ROLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Nuno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 22:12:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorizations-for-office-documents/m-p/2955900#M697244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T22:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Authorizations for Office Documents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorizations-for-office-documents/m-p/2955901#M697245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;please check if you are using S_WFAR_OBJ  object ,just give take out activity 06 (delete) from user authorization profile/role.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 03:22:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorizations-for-office-documents/m-p/2955901#M697245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T03:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Authorizations for Office Documents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorizations-for-office-documents/m-p/2955902#M697246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply BN,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've managed to debug the code, and find that in method 'EXECUTE' for class 'CL_MSG_AL_ITEM', the authority check uses the 'S_OC_ROLE' and tries to check if the user have Administrator privileges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;###########################################&lt;/P&gt;&lt;P&gt;        WHEN cl_gos_attachments=&amp;gt;gc_cmd_delete.&lt;/P&gt;&lt;P&gt;          AUTHORITY-CHECK OBJECT 'S_OC_ROLE'&lt;/P&gt;&lt;P&gt;                          ID     'OFFADMI'&lt;/P&gt;&lt;P&gt;                          FIELD  'ADMINISTRATOR'.&lt;/P&gt;&lt;P&gt;          IF  sy-subrc = 0 OR sy-uname = gp_owner.&lt;/P&gt;&lt;P&gt;            CALL METHOD lo_docsrv-&amp;gt;delete_url&lt;/P&gt;&lt;P&gt;              EXPORTING&lt;/P&gt;&lt;P&gt;                is_lporb = gs_lporb&lt;/P&gt;&lt;P&gt;                ip_url   = lp_objkey.&lt;/P&gt;&lt;P&gt;            rp_commit = 'X'.&lt;/P&gt;&lt;P&gt;        .........&lt;/P&gt;&lt;P&gt;###########################################&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.. and if you have administrator access, the user can do any activity in the attached document.. is this correct ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorizations-for-office-documents/m-p/2955902#M697246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T21:30:17Z</dc:date>
    </item>
  </channel>
</rss>

