アーティクル - CS386233

「PersistentSession の ServiceInvoke は許可されていません<Session ID>「管理者以外のユーザーがThingWorx Platformのマッシュアップにアクセスしたときに表示される」

修正日: 09-Apr-2024   


注記:ここに記載されている情報は、お客様の利便性向上のため機械翻訳ソフトを使用しています。PTCは、ここに記載されている情報の翻訳の正確性について、一切の責任を負いませんので、ご了承ください。英語の原文を参照するには、こちら。この機械翻訳に関する詳細は、こちら。
お知らせいただき、ありがとうございます。この機械翻訳をレビューします。

適用対象

  • ThingWorx Platform 8.5 to 9.6

説明

  • 管理者以外のユーザーは、可能な場合は値を自動的に更新するマッシュアップで更新されたプロパティ値を確認できません。
  • マッシュアップでGetPropertiesを実装するカスタマイズされたソリューションが管理者以外のユーザーに対して失敗する
  • エラーのため、 BrowserGateway Thing Template の権限を編集できません
    • AddDynamicRemoteSubscriptionおよびRemoveDynamicRemoteSubscriptionに追加のプリンシパルを追加する必要があります
  • 管理者以外のユーザーは、可能な場合は値を自動的に更新するオプションを有効にしてGetProperties呼び出しを行うマッシュアップでエラーが発生します。
  • AddDynamicRemoteSubscriptionServiceInvokeに権限を付与する方法
  • 次の 2 つのシナリオが発生します。
    1. セキュリティ上の理由により、 UsersユーザーグループはComposerUsersグループから削除されました
      • この場合、 AddDynamicRemoteSubscriptionに関する次のタイプのエラーがThingworxStorage\logs\ApplicationLog.log に記録されます。
[L: ERROR] [O: E.c.q.l.c.Logger] [I: ] [U: <USER>] [S: ] [P: ] [T: WSExecutionProcessor-26] Unable to dispatch [ uri = /Things/PersistentSession<Session ID>/Services/AddDynamicRemoteSubscription/]: Unable to Invoke Service AddDynamicRemoteSubscription on PersistentSession<Session ID> : Not authorized for ServiceInvoke on AddDynamicRemoteSubscription in PersistentSession<Session ID>
[L: ERROR] [O: E.c.q.l.c.Logger] [I: ] [U: <USER>] [S: ] [P: ] [T: WSExecutionProcessor-26] error executing APIRequest Message: Not authorized for ServiceInvoke on AddDynamicRemoteSubscription in PersistentSession<Session ID>, sending ERROR ResponseMessage to caller!
  1. ユーザーのユーザーグループはComposerUsersグループのメンバーのままですが、ユーザーはAdministratorsユーザーグループには属していません。
    • この場合、 ForwardEventで次のタイプのエラーが受信されます。
Unable to dispatch [ uri = /Things/PersistentSession94b4c4a6-962a-49d3-94f9-c9f9d4bc1b27/Services/AddDynamicRemoteSubscription/]: Unable to Invoke Service AddDynamicRemoteSubscription on PersistentSession94b4c4a6-962a-49d3-94f9-c9f9d4bc1b27 : Not authorized for ServiceInvoke on ForwardEvent in PersistentSession94b4c4a6-962a-49d3-94f9-c9f9d4bc1b27
 error executing APIRequest Message: Not authorized for ServiceInvoke on ForwardEvent in PersistentSession94b4c4a6-962a-49d3-94f9-c9f9d4bc1b27, sending ERROR ResponseMessage to caller!
  • その他のエラーの可能性:
Error Executing Event Handler 'ForwardEvent' for event Type.Thing:Entity.Thing3:Event.DataChange:Property.Num3

Error Executing Event Handler 'ForwardEvent' for event Type.Thing:Entity.MyThing:Event.DataChange:Property.myproperty com.thingworx.common.exceptions.InvalidRequestException: Not authorized for ServiceInvoke on ForwardEvent in PersistentSession...

最新バージョンはこちらを参照ください CS386233