<< Click to Display Table of Contents >> Revoke Case Access |
Overview
This Web method is used to revoke access to cases in Bizagi for a given set of users (from an external application).
This method receives a single input having mainly: any number of UserNames of the users to be revoked as privileged users and the respective case number.
Through this method, a user is removed from the privileged list of users who have access to a Process instance (case). The values passed must be known in advance and must be sent from an external system
For further information about revoke case access, please refer to Case security.
•For the revokeCaseAccess method, the request and response XML's are of the native .NET XmlDocument type.
•For the revokeCaseAccessAsString method the same XML structure is handled, but this parameter is sent as a string type using CDATA.
Input
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="BizAgiWSParam">
<xs:complexType>
<xs:sequence>
<xs:element name="CaseAccessXML" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Input Parameters
•BizAgiWSParam: Root node.
•CaseAccessXML: Include here the information (XML-structured) of the cases where you want to remove users from the privileged list of users who have access to them.
For further information about the expected structured for the business information contained in this Entities element, refer to Bizagi's data model XML schemas.
Input Example
With the following sample XML, the users dtaylor and efeller will be removed to case 354. To revoke case access, the case must not be closed and must exist.
GrantCaseAccess Method Input
<![CDATA[<BizAgiWSParam>
<CaseAccess idCase='354'>
<UserName>domain\dtaylor</UserName>
<UserName>domain\efeller</UserName>
</CaseAccess>
</BizAgiWSParam>]]>
GrantCaseAccessAsString Method Input
<caseAccessXML>
<![CDATA[<BizAgiWSParam>
<CaseAccess idCase='354'>
<UserName>domain\dtaylor</UserName>
<UserName>domain\efeller</UserName>
</CaseAccess>
</BizAgiWSParam>]]>
</caseAccessXML>
Output
Output Parameters
•ErrorMessage: Message explaining why the error occurred. Visible when the error is caused by wrong data.
•CaseAccess: Cases processed during the invocation.
Output Example
In the following example, we illustrate a returned XML-structured response from Bizagi SOA layer, in which we can see:
•The set of users has been removed from the case 354.
•The user could not be removed. Within the response, error detail is found at ErrorMessage, in which the service informs that the case 3294 does not exist or is closed.
Related Web methods
If you wish to grant the access to a case, use the grantCaseAccessAsString or grantCaseAccess Web method.
For further information refer to the Grant Case Access article.
Last Updated 1/6/2022 5:14:05 PM