puter.perms.grantApp()
Grants a permission from the current actor (usually a user) to the specified app. This "granted permission" is simply a link between the current actor and specified app through which a permission may be obtained when the app is running on behalf of the current actor. If the current actor does not have this permission or loses this permission at some point, this link will have no effect (that does not mean this action has no effect).
This currently cannot be called from non-privileged apps
puter.perms.grantApp(app_uid, permissionString);
app_uid
(string) (required)
The UID of the app to grant permission to.
permissionString
(string) (required)
Empty object (reserved for future use)
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.perms.grantApp('app-123456789', 'fs:FILE-BELONGING-TO-BOB:read');
</script>
</body>
</html>