Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit 03e0320

Browse files
authored
remove default assignment all roles for main user (#346)
1 parent d8827ae commit 03e0320

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libs/python/helperRolesAndUsers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010

1111

1212
def getMembersForRolecollection(btpUsecase, rolecollection):
13+
# the one executing the use case is only added to the role collections defined in the use case if explicitly added
1314
users = []
14-
users.append(btpUsecase.myemail)
15+
1516
if rolecollection:
1617
for usergroup in rolecollection.get("assignedUserGroupsFromParameterFile"):
1718
members = getMembersOfUserGroup(btpUsecase, usergroup)
@@ -84,8 +85,8 @@ def getRoleCollectionsOfServices(btpUsecase):
8485

8586

8687
def getMembersOfUserGroup(btpUsecase, usergroup):
88+
# the one executing the use case is only added to the role collections defined in the use case if explicitly added
8789
members = []
88-
members.append(btpUsecase.myemail)
8990
usergroupExists = False
9091

9192
if btpUsecase.myusergroups and usergroup:

0 commit comments

Comments
 (0)