Skip to content

Commit

Permalink
Fixed bug in gam <UserTypeEntity> add datastudiopermissions that ca…
Browse files Browse the repository at this point in the history
…used a trap.
  • Loading branch information
taers232c committed Apr 14, 2021
1 parent 90f4ad6 commit 02529e0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/GamCommands.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4273,13 +4273,13 @@ gam <UserTypeEntity> add datastudiopermissions
[([assettype report|datasource] [title <String>]
[owner <Emailddress>] [includetrashed]) |
(assetids <DataStudioAssetIDEntity>)]
(role editor|owner|viewer members <DataStudioPermissionsEntity>)+
(role editor|owner|viewer members <DataStudioPermissionEntity>)+
[nodetails]
gam <UserTypeEntity> delete datastudiopermissions
[([assettype report|datasource] [title <String>]
[owner <Emailddress>] [includetrashed]) |
(assetids <DataStudioAssetIDEntity>)]
members <DataStudioPermissionsEntity>
members <DataStudioPermissionEntity>
[nodetails]

gam <UserTypeEntity> print datastudiopermissions [todrive <ToDriveAttribute>*]
Expand Down
6 changes: 5 additions & 1 deletion src/GamUpdate.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
6.02.01

Fixed bug in `gam <UserTypeEntity> add datastudiopermissions` that caused a trap.

6.02.00

Following Jay's lead, aliases are converted to primary email addresses when adding delegates.

Added commands to display Data Studio assets and display/manage Data Studio permissions.
* https://github.com/taers232c/GAMADV-XTD3/wiki/Users-DataStudio

To use these commands you must add the 'Data Studio API' to your project and update your service account authorization.
To use these commands you must add the `Data Studio API` to your project and update your service account authorization.
```
gam update project
gam user [email protected] check serviceaccount
Expand Down
4 changes: 2 additions & 2 deletions src/gam/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"""

__author__ = 'Ross Scroggs <[email protected]>'
__version__ = '6.02.00'
__version__ = '6.02.01'
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'

import base64
Expand Down Expand Up @@ -47059,7 +47059,7 @@ def processDataStudioPermissions(users):
if getDataStudioAssetSelectionParameters(myarg, parameters):
pass
elif myarg in {'assetid', 'assetids'}:
assetIdEntity = getUserObjectEntity(Cmd.OB_USER_ENTITY, Ent.DATASTUDIO_ASSET_ID)
assetIdEntity = getUserObjectEntity(Cmd.OB_USER_ENTITY, Ent.DATASTUDIO_ASSETID)
elif action == Act.ADD and myarg == 'role':
permissions.setdefault('permissions', {})
role = getChoice(DATASTUDIO_PERMISSION_ROLE_CHOICE_MAP, mapChoice=True)
Expand Down

0 comments on commit 02529e0

Please sign in to comment.