Documentation

​
​

Development

User Acquisition

Monetization

Industry

Unity Gaming Services CLI

v1.6

Legacy
​

GitHub Repository

Unity Gaming Services CLI

v1.6

Legacy
​

Unity Gaming Services CLI
​
​
Access
  • Overview
  • Resource Definitions
  • Commands
  1. Overview
  2. Access

Resource Definitions

Reference the schema definitions for Access policy, statement, and delete options.
Read time 1 minute
Last updated 3 months ago

Policy

{ "statements": array[Statement]}

Statement

{ "Sid": "<Statement ID. Consists of alphanumeric characters and hyphen, and must be of length between 6 and 60 chars.>", "Resource": "<Uniform resource name of the resource(s) being targeted by the policy having pattern: ^urn:ugs:<service-name>:/<path>" // glob pattern, "Principal": "<The principal the statement applies to, Allowed values are "Player" and "Unauthenticated". Remember that, "Unauthenticated" is not supported for player policies>", "Action": "<User action against which the policy statement will be applicable. Allowable value is an array with elements that can only have one of three possible values: "Read", "Write" and "*>", "Effect": "<Effect of the policy statement. Allowable values are "Allow" and "Deny">"}

Delete Options

{ "statementIDs": array[strings]}

Example for Policy Schema

{ "statements": [ { "Sid": "DenyAccessForCloudCodeService", "Resource": "urn:ugs:cloud-code:/*", "Principal": "Player", "Action": ["*"], "Effect": "Deny" } ]}
See Access Admin API documentation for more information.

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • On this page
    • Policy

    • Statement

    • Delete Options

    • Example for Policy Schema