PermissionsService
Internal service for asset permissions and Studio plugin consent; not accessible from creator scripts.
This class is not creatable. Instances of this class cannot be created with Instance.new.
This class is a service. It is a singleton that may be acquired with GetService.
| Memory category | Instances |
|---|
Member index 5
Description
Not creator-facing: all members require RobloxScript security and can only
be called from Roblox core scripts. Tracks permissions associated with assets
in two roles:
- Stores an experience's third-party content settings — whether third-party assets, purchases, and teleports are allowed, and whether rewarded on-demand ads are allowed. These settings are initialized from the universe's settings and can be queried through the service.
- In Roblox Studio, stores and retrieves permissions granted to an installed plugin (such as approved HTTP domains and script-injection consent) and drives the dialogs that prompt a user to grant or deny those permissions.
History 16
- 573 Change ReturnType of SetPermissions from void to null
- 462 Change ThreadSafety of SetPermissions from to Unsafe
- 462 Change ThreadSafety of GetPermissions from to Unsafe
- 462 Change ThreadSafety of GetIsThirdPartyTeleportAllowed from to Unsafe
- 462 Change ThreadSafety of GetIsThirdPartyPurchaseAllowed from to Unsafe
- 462 Change ThreadSafety of GetIsThirdPartyAssetAllowed from to Unsafe
- 436 Add GetIsThirdPartyTeleportAllowed
- 436 Add GetIsThirdPartyPurchaseAllowed
- 436 Add GetIsThirdPartyAssetAllowed
- 420 Add SetPermissions
- 420 Add GetPermissions
- 420 Add PermissionsService
- 419 Remove PermissionsService
- 420 Add SetPermissions
- 420 Add GetPermissions
- 420 Add PermissionsService
Members 5
GetIsThirdPartyAssetAllowed
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Returns (1) | ||
| bool | ||
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of GetIsThirdPartyAssetAllowed from to Unsafe
- 436 Add GetIsThirdPartyAssetAllowed
GetIsThirdPartyPurchaseAllowed
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Returns (1) | ||
| bool | ||
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of GetIsThirdPartyPurchaseAllowed from to Unsafe
- 436 Add GetIsThirdPartyPurchaseAllowed
GetIsThirdPartyTeleportAllowed
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Returns (1) | ||
| bool | ||
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of GetIsThirdPartyTeleportAllowed from to Unsafe
- 436 Add GetIsThirdPartyTeleportAllowed
GetPermissions
| Parameters (1) | ||
|---|---|---|
| assetId | string | |
| Returns (1) | ||
| Array | ||
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
History 4
- 462 Change ThreadSafety of GetPermissions from to Unsafe
- 420 Add GetPermissions
- 419 Remove PermissionsService
- 420 Add GetPermissions
SetPermissions
| Parameters (2) | ||
|---|---|---|
| assetId | string | |
| permissions | Array | |
| Returns (1) | ||
| null | ||
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
History 5
- 573 Change ReturnType of SetPermissions from void to null
- 462 Change ThreadSafety of SetPermissions from to Unsafe
- 420 Add SetPermissions
- 419 Remove PermissionsService
- 420 Add SetPermissions