cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice - grac_risk_analysis_wout_no_ws - how to get the composite role in the result?

JoernKaplan
Discoverer
0 Kudos
188

Hi SAP-community,

is it possible to get the causing composite role in the result of the webservice grac_risk_analysis_wout_no_ws? I can successfully simulate adding a composite role and I see the resulting risks. But I can only see which single roles cause the risk but not the corresponding causing composite role.

JoernKaplan_0-1736966497659.png

Any ideas if it is possible?

 

Thanks and best regards

Jörn

 

View Entire Topic
SConix
Participant
0 Kudos

Hi Joern,

Have you provided the correct report format for the result ?

See note 2245786 : 2245786 - GRAC_RISK_ANALYSIS_WOUT_NO_WS does not return data - SAP for Me

FYI : The analysis information around which role is causing the risk is only provided in the "Detail" view.
The parameter 1023 is not considered when running the risk analysis via the webservice.

Hopefully this helps you further.

Sigrid

JoernKaplan
Discoverer
0 Kudos

Hi Sigrid,

I tried it with multiple different formats. This is the result with reportFormat=2

<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
   <soap-env:Header/>
   <soap-env:Body>
      <n0:GracIdmRiskWoutNoServicesResponse xmlns:n0="urn:sap-com:document:sap:soap:functions:mc-style">
         <MsgReturn>
            <MsgNo>0</MsgNo>
            <MsgType>SUCCESS</MsgType>
            <MsgStatement>Data populated successfully</MsgStatement>
         </MsgReturn>
         <RiskAnalysisWithoutNoData>
            <item>
               <ObjectId>GRCTEST1</ObjectId>
               <RoleId>ZOMADA:RISK1</RoleId>
               <Riskid>B001</Riskid>
               <RiskDesc>Basis Development &amp; System Administration</RiskDesc>
               <RiskLevel>0</RiskLevel>
               <RiskLevelDesc>Medium</RiskLevelDesc>
               <Ruleid>0001</Ruleid>
               <System>EQ5CLNT800</System>
               <Action>/SAPDMC/LSMW</Action>
               <Lastexecutedon/>
               <Executioncount>0</Executioncount>
               <Control/>
               <Monitor/>
            </item>
            <item>
               <ObjectId>GRCTEST1</ObjectId>
               <RoleId>ZOMADA:RISK2</RoleId>
               <Riskid>B001</Riskid>
               <RiskDesc>Basis Development &amp; System Administration</RiskDesc>
               <RiskLevel>0</RiskLevel>
               <RiskLevelDesc>Medium</RiskLevelDesc>
               <Ruleid>0001</Ruleid>
               <System>EQ5CLNT800</System>
               <Action>CMOD</Action>
               <Lastexecutedon/>
               <Executioncount>0</Executioncount>
               <Control/>
               <Monitor/>
            </item>
         </RiskAnalysisWithoutNoData>
      </n0:GracIdmRiskWoutNoServicesResponse>
   </soap-env:Body>
</soap-env:Envelope>
JoernKaplan
Discoverer
0 Kudos

and the corresponding request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
   xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:GracIdmRiskWoutNoServices>
         <AddlAttrib>
            <item>
               <AddlAttrib>16</AddlAttrib>
            </item>
            <item>
               <AddlAttrib>11</AddlAttrib>
            </item>
         </AddlAttrib>
         <ConnectorId>
            <item>
               <Connector>EQ5CLNT800</Connector>
            </item>
         </ConnectorId>
         <HitCount>100</HitCount>
         <ObjectId>
            <item>
               <Objid>GRCTEST1</Objid>
            </item>
         </ObjectId>
         <OrgRule>
         </OrgRule>
         <ObjectType>USR</ObjectType>
         <ReportFormat>2</ReportFormat>
         <ReportType>
            <item>
               <ReportType>1</ReportType>
            </item>
            <item>
               <ReportType>2</ReportType>
            </item>
            <item>
               <ReportType>3</ReportType>
            </item>
            <item>
               <ReportType>4</ReportType>
            </item>
            <item>
               <ReportType>5</ReportType>
            </item>
         </ReportType>
         <Simulation>
            <item>
               <Connector>EQ5CLNT800</Connector>
               <Simuobtype>ROL</Simuobtype>
               <SimuobjidLst>
                  <item>
                     <Simuobjid>ZOMADA:COMP:RISK2</Simuobjid>
                  </item>
               </SimuobjidLst>
            </item>
         </Simulation>
         <SimulationRiskOnly>X</SimulationRiskOnly>
      </urn:GracIdmRiskWoutNoServices>
   </soapenv:Body>
</soapenv:Envelope>