我可以使用Stormpath访问特定用户的自定义数据吗?

我正在使用快速Stormpath,我想要访问数据库中存在的特定用户的自定义数据,而不是以该用户身份login。 这将用于pipe理式用户界面,具有某些权限的用户可以编辑其他用户的自定义数据。

我如何访问特定用户的数据,就像使用req.user.customData访问当前用户的数据req.user.customData

如果你使用快速库,你可以这样说:

 app.get('stormpathApplication').getAccount(account_href_here, function(err, account) { if (err) throw err; account.getCustomData(function(err, data) { if (err) throw err; console.log(data); }); }); 

app.get('stormpathApplication')是一个Application对象,所以任何这些API文档都可以在这里工作: http : //docs.stormpath.com/nodejs/api/application

我是这个库的开发者,希望这有助于!