Ive at the moment 236 Groups in Devolutions Server.
But when i try to get them via DVLS Powershell Module, it only returns me 25 Objects:
What can i do to get all Groups with DVLS Powershell Module?
Best Regards,
Andreas
Hello Andreas,
Are you using the 2021.7.0 branch from GitHub for the DVLS module? It has many improvements that have not yet been pushed to psgallery. You can download it from here: https://github.com/Devolutions/devolutions-server/tree/2021.7.0
Note that has been more heavily tested with 2021.2, what version of DVLS are you currently running?
Best regards,
Richard Boisvert
Hi Richard
Yes, im using the 2021.7 Branch.
DVLS 2021.1.20.0
Best Regards,
Andreas
Hello Andreas,
I did some tests and if you have more than 25 groups, it only returns 25 max. I will open a case with the engineering team and report back their findings.
Best regards,
Richard Boisvert
Hello Andreas,
The module has been updated, you can pull it again from GitHub. As you can see in https://github.com/Devolutions/devolutions-server/blob/2021.7.0/Powershell%20Module/Devolutions.Server/Public/Roles/Get-DSRole.ps1, it will now pull the first 100 now, but you can change it with the following (for example)
$roles = (Get-DSRoles -PageSize 1000).body.data
Best regards,
Richard Boisvert
Hi Richard
Thank you for the Update (also thanks to Alex) - it worked for me.
Just for Info: The function changed from Get-DSRoles to Get-DSRole
Another Question for the same class: How to create an o365 entry with New-DSRole?
Im just wondering, because while writing the Script, i just noticed that i have no option to declare the role type (0 = Domain, 2 = O365...).
For Users its possible by specify -AuthenticationType Parameter.
In other words: I want to automate the O365 Group Import, so i need to create/import O365 Groups (Roles) via Powershell.
Best Regards,
Andreas
Hello Andreas,
I had missed your question, my apologies. I have reached out to the engineer so he can add the parameter.
As a side note, the 2021.7.0 branch has been merged into the main, so you can simply pull the main branch now.
Best regards,
Richard Boisvert
Great News, thanks a lot, Richard :-)
Best Regards,
Andreas