I need help obtaining the members of groups in the O365 SCC center (connect to IPPSsession)<\/p>\n
I keep getting error: Cannot process argument transformation on parameter ‘Identity’. Cannot convert the “System.Collections.ArrayList” value of type “System.Collections.ArrayList” to
\ntype “Microsoft.Exchange.Configuration.Tasks.RoleGroupMemberIdParameter”.<\/p>\n
Here is my script:<\/p>\n
#get all groups and all members of each group for O365 security and compliance\n\nWrite-Verbose \"retrieving SCC Roles\"$sccrole = @(Get-RoleGroup -ErrorAction Stop)foreach ($sccrole in $sccrole) \n\n#loop through each SCC role and obtain members \n\nWrite-Verbose \"processing $($sccrole.name)\"\n\n#get list of members for the roles\n\n$sccrolemember = @(get-rolegroupmember -identity $sccrole.name)foreach ($sccrolemember in $sccrolemember) { Select |\"role\" = $sccroles.name\"display name\" $sccrolemembers.name}\n<\/code><\/pre>\nAny help would be appreciated!\n\n<\/code><\/pre>","upvoteCount":4,"answerCount":3,"datePublished":"2018-11-07T15:55:47.000Z","author":{"@type":"Person","name":"spiceuser-onzas","url":"https://community.spiceworks.com/u/spiceuser-onzas"},"suggestedAnswer":[{"@type":"Answer","text":"I need help obtaining the members of groups in the O365 SCC center (connect to IPPSsession)<\/p>\n
I keep getting error: Cannot process argument transformation on parameter ‘Identity’. Cannot convert the “System.Collections.ArrayList” value of type “System.Collections.ArrayList” to
\ntype “Microsoft.Exchange.Configuration.Tasks.RoleGroupMemberIdParameter”.<\/p>\n
\n- CategoryInfo : InvalidData: (
[Get-RoleGroupMember], ParameterBindin…mationException<\/li>\n - FullyQualifiedErrorId : ParameterArgumentTransformationError,Get-RoleGroupMember<\/li>\n
- PSComputerName : nam03b.ps.compliance.protection.outlook.com<\/a><\/li>\n<\/ul>\n
Here is my script:<\/p>\n
#get all groups and all members of each group for O365 security and compliance\n\nWrite-Verbose \"retrieving SCC Roles\"$sccrole = @(Get-RoleGroup -ErrorAction Stop)foreach ($sccrole in $sccrole) \n\n#loop through each SCC role and obtain members \n\nWrite-Verbose \"processing $($sccrole.name)\"\n\n#get list of members for the roles\n\n$sccrolemember = @(get-rolegroupmember -identity $sccrole.name)foreach ($sccrolemember in $sccrolemember) { Select |\"role\" = $sccroles.name\"display name\" $sccrolemembers.name}\n<\/code><\/pre>\nAny help would be appreciated!\n\n<\/code><\/pre>","upvoteCount":4,"datePublished":"2018-11-07T15:55:47.000Z","url":"https://community.spiceworks.com/t/cannot-convert-arraylist-to-ms-identity-parameter/682672/1","author":{"@type":"Person","name":"spiceuser-onzas","url":"https://community.spiceworks.com/u/spiceuser-onzas"}},{"@type":"Answer","text":"If you post code, please use the ‘Insert Code’ button. Please and thank you!<\/p>