How can I get CurrentUser

I try to get Currnentuser info I get this error :
VM18096:23 Uncaught (in promise) Error: in get_currentUser: currentuser permission not specified in manifest.json.

I can’t understand how can change permission in the manifest.json.
I read this doc but I didnt.


You need to add "permissions": ["currentuser"] to your manifest.json.

manifest.json example:

  "name": "MyPlugin",
  "id": "737805260747778092",
  "api": "1.0.0",
  "main": "code.js",
  "ui": "ui.html",
  "permissions": ["currentuser"]

Thank you very much. Its works.