For Java SDK's inspectDocument() the user being used to call the API needs to have either "open online" permission on the document (its policy) or should have "manage policyset" permission in UM or should have "manage documents" permission on document's policyset. For Java PPL's inspectDocument we d...