question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE REQ] Role Assignment - Allow adding of description

See original GitHub issue

Context

We want to add contextual information to role assignments using the description field. Since role assignments are not managed via the portal but via a centralised service we need a Java API to add a description when we create a new role assignment.

Goal

Having the same fields available when creating a role assignment via the Java SDK as we have them in the Azure Portal. Specifically, we require the possibility to add a description to a role assignment when it gets created.

Solution

add method “withDescription” to allow adding a description text.

azureResourceManager.accessManagement().roleAssignments()
                            .define(arm.resourceGroups().manager().internalContext().randomUuid())
                            .forObjectId(user.id)
                            .withRoleDefinition(roleDefinition.id())
                            .withSubscriptionScope(subscriptionId)
                            .withDescription("This is a description string")
                            .create();

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
weidongxu-microsoftcommented, Oct 25, 2022

Next lib would be released about this week, on version 2.20.0

0reactions
weidongxu-microsoftcommented, Oct 28, 2022

2.20.0 released with the support

Read more comments on GitHub >

github_iconTop Results From Across the Web

Assign Azure roles using the Azure portal - Microsoft Learn
Prerequisites; Step 1: Identify the needed scope; Step 2: Open the Add role assignment page; Step 3: Select the appropriate role ...
Read more >
Amazon ECS task execution IAM role - AWS Documentation
The task execution role grants the Amazon ECS container and Fargate agents permission to make AWS API calls on your behalf. The task...
Read more >
Configure member roles—ArcGIS Online Help | Documentation
After configuring a custom role, you can assign the role to existing members. You can select some custom roles as a new member...
Read more >
Creating and managing custom roles - IAM - Google Cloud
This page describes how to create and manage Identity and Access Management (IAM) custom roles. Managing roles includes modifying, disabling, listing, ...
Read more >
Users, roles, permissions (original user model)
Here is a summary of Admin and Add-on manager capabilities with APM. To allow a User or Restricted User to execute any of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found