Skip to content

Setting custom theme during creation fails, works with update #1975

Description

@mclemen2-swat

Full steps to reproduce the issue:

  1. gam user [adminuser@domain.edu] create shareddrive "[Shared Drive Name]" adminmanagedrestrictions true sharingfoldersrequiresorganizerpermission false adminaccess org "Shared Drives" customtheme 146pNgTQiNyDYPEytmmM9_icQJIS_4Unt 0.0 0.0 1.0 color "#37474f"
    User: [adminuser@domain.edu, Shared Drive Name: [Shared Drive Name], Shared Drive ID: [Shared Drive ID], Created
    Waiting for Shared Drive creation to complete. Sleeping 10 seconds

ERROR: 403: insufficientFilePermissions - The user does not have sufficient permissions for this file.

2.gam user [adminuser@domain.edu] update shareddrive [Shared Drive ID returned by create command] customtheme 146pNgTQiNyDYPEytmmM9_icQJIS_4Unt 0.0 0.0 1.0 color "#37474f"

User: [adminuser@domain.edu], Shared Drive Name: [Shared Drive Name], Shared Drive ID: [Shared Drive ID], Updated

Expected outcome (what are you trying to do?):
The create command should create the shared drive and apply the custom theme

Actual outcome (what errors or bad behavior do you see instead?):
The shared drive is created, but produces the error "ERROR: 403: insufficientFilePermissions - The user does not have sufficient permissions for this file." However, when updating it with the same user and same image for the theme, it sets the them properly. The image for the theme is in the drive for, and owned, by the user that is creating the drive and is world readable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions