Only allows specific capsules or organizations to use the declared required permissions. Restricted permissions can only be accessed by the following:
org keys under restricted.capsule keys under restricted.This endpoint requires the contacts permission, which can only be granted to capsules belonging to the bixby organization and the samsung.coolThing capsule:
...
action-endpoint (GetContactPermission) {
accepted-inputs ()
local-endpoint (GetContactPermission.js)
required-permissions {
permission (contacts) {
restricted {
org (bixby)
capsule (samsung.coolThing)
}
}
}
}
...Note that org and capsule can be mixed. However, if you specify an organization with org, you should not specify any individual capsules within that organization; they are automatically included.
Copyright 2025 Samsung All rights reserved