Skip to content

Authorization: Changes to the Get-AzureRoleAssignment commandlet to also display classic admins and perform group expansion for users #846

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Sep 16, 2015

Conversation

namratab
Copy link
Contributor

@namratab namratab commented Sep 3, 2015

Authorization: Changes to the Get-AzureRoleAssignment commandlet to also display classic admins and perform group expansion for users

@azurecla
Copy link

azurecla commented Sep 3, 2015

Hi @namratab, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!


It looks like you're working at Microsoft (nbaliga). If you're full-time, we DON'T require a contribution license agreement.



If you are a vendor, or work for Microsoft Open Technologies, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;

@markcowl
Copy link
Member

markcowl commented Sep 3, 2015

@namratab tests failed. Also, the dev branch is closed until mid next week. You can still make the 0.9.8 release, if you target this at the release-0.9.8 branch - we have pushed out code complete until Friday.

@namratab
Copy link
Contributor Author

namratab commented Sep 3, 2015

Thanks, I will send out a new PR against the release branch

@namratab
Copy link
Contributor Author

I've used a custom recordmatcher to exclude api versions for matching the Microsoft.authorization permissions api calls across different RPs. The API contract is exactly the same and only change is to go from a "preview" version to non-preview.
The current combining of Authorization and Resources projects in Powershell is what caused issues in updating only the Authorization package version for RBAC commandlets only - build/test errors due to multiple versions of Authorization dll showing up due to most projects taking a dll dependency on Commands.Resources as well.

@@ -96,6 +97,10 @@ public void RunPsTest(params string[] scripts)
string callingClassType,
string mockName)
{
Dictionary<string, string> d = new Dictionary<string, string>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could u move this code to RMTestBase instead of duplicating it everywhere in the code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is used only for a few of the test projects which depend on authorization RP. Not needed for all tests. Is there benefit in moving it there? Keeping it here also makes it explicit that en exclusion is added for particular test projects only.

…gnmentmerge

Conflicts:
	src/ResourceManager/Resources/Commands.Resources/Models.Authorization/AuthorizationClient.cs
	src/ResourceManager/Resources/Commands.Resources/Models.Authorization/FilterRoleAssignmentsOptions.cs
	src/ResourceManager/Resources/Commands.Resources/RoleAssignments/GetAzureRoleAssignmentCommand.cs
	src/ResourceManager/Resources/Commands.Resources/RoleAssignments/RemoveAzureRoleAssignmentCommand.cs
jianghaolu pushed a commit that referenced this pull request Sep 16, 2015
Authorization: Changes to the Get-AzureRoleAssignment commandlet to also display classic admins and perform group expansion for users
@jianghaolu jianghaolu merged commit 98d8eb3 into Azure:dev Sep 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants