Skip to content

google/uem_poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Sample UEM App for Policy API

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:

  1. 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)
  2. 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)
  3. 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.

Pending/Upcoming Tasks

  • 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

How to use this app

Prerequisites

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.

Development server

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.

Usage

  • 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 Inherit button and click Save to save the changes. Please note that the inherit button will only be enabled if the policy value is not inherited
  • The Save button will save all the policy modifications and policy inherits done on the page

Disclaimer

This is not an officially supported Google product

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published