アーティクル - CS386233
「PersistentSession の ServiceInvoke は許可されていません<Session ID>「管理者以外のユーザーがThingWorx Platformのマッシュアップにアクセスしたときに表示される」
修正日: 09-Apr-2024
適用対象
- ThingWorx Platform 8.5 to 9.6
説明
- 管理者以外のユーザーは、可能な場合は値を自動的に更新するマッシュアップで更新されたプロパティ値を確認できません。
- マッシュアップでGetPropertiesを実装するカスタマイズされたソリューションが管理者以外のユーザーに対して失敗する
- エラーのため、 BrowserGateway Thing Template の権限を編集できません
- AddDynamicRemoteSubscriptionおよびRemoveDynamicRemoteSubscriptionに追加のプリンシパルを追加する必要があります
- 管理者以外のユーザーは、可能な場合は値を自動的に更新するオプションを有効にしてGetProperties呼び出しを行うマッシュアップでエラーが発生します。
- AddDynamicRemoteSubscriptionでServiceInvokeに権限を付与する方法
- 次の 2 つのシナリオが発生します。
- セキュリティ上の理由により、 UsersユーザーグループはComposerUsersグループから削除されました
- この場合、 AddDynamicRemoteSubscriptionに関する次のタイプのエラーがThingworxStorage\logs\ApplicationLog.log に記録されます。
- セキュリティ上の理由により、 UsersユーザーグループはComposerUsersグループから削除されました
[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!
- ユーザーのユーザーグループは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