This Angular Application is meant to represent a sample Application which uses the Chrome Policy API for managing ChromeOS devices. The application demonstrates how to:
- Use the Policy Schemas List call to auto generate the UI (Avoids the need to add individual policies as they are released. The policies will be available on the UI as soon as a new policy is released)
- Use the Batch modify API call to update policies (One API call can be used to update multiple policies. This will reduce the number of required API calls. This helps with any Quota exceeded issues)
- Use the Batch Inherit API call to inherit policies from parent (Inherit makes it easier for customers to set policies as per the parent OU instead of updating to the actual value. One API call can be used to inherit multiple policies. This will reduce the number of required API calls. This helps with any Quota exceeded issues)
The above listed items are recommended to be implemented by the Policy API team when using the API.
The application currently renders policies under the User Application Settings policy category. The work required to render other policy categories is in progress. The application can partially render policies under other policy categories.
This project was generated with Angular CLI version 15.2.5.
- Add support for other categories of Policies
- Add support for groups
- Add retry and exponential backoff logic in case of API call failures related to API Quota limits
- Add unit tests
- Add better comments where needed
- Add capability to revert values to Google default
- Address TODO comments in the code
Follow the setup steps till Step 3. Use Option 1 to create the OAuth client ID. You can configure this client ID in the google-auth-service.ts file.
Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.
- Login to the application with the admin user of your domain
- After a successful login you will see the policies available which are filtered by the Org Unit and Policy Category
- You can change the selected Org Unit and Policy Category according to what you want to view
- If you modify a policy then you can save the changes by hitting the save button
- If you want to inherit a particular policy from the parent OU then you can use the
Inheritbutton and clickSaveto save the changes. Please note that the inherit button will only be enabled if the policy value is not inherited - The
Savebutton will save all the policy modifications and policy inherits done on the page
This is not an officially supported Google product