getMbSec(callback: Function|PP.Delegate, reforce: Boolean);
callback. Callback function.
reforce. It indicates whether additional repository settings are requested again. If the parameter is set to True, repository settings are requested again, otherwise they are not.
The getMbSec method requests additional repository settings.
The method returns a JSON object with the following fields: users - information about repository users, sharepointSettings - settings of the SharePoint service.
Executing the example requires that the Foresight Analytics Platform web application is opened. The scenario specified below must be started in the browser console.
Determine repository user identifier and key, platform version and repository session timeout time:
// Get additional repository settings var meta = PP.App.getMbSec(); if (meta != null & meta.users != null) { console.log("Repository user identifier: " + meta.users.its.it[0].id); console.log("Its key: " + meta.users.its.it[0].k); };
After executing the example the browser console displays identifier of the repository user and his key, platform version and repository session timeout time:
Repository user identifier: ADMIN
User key: 2147483649
See also: