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.

Cannot create User / Group Attributes with Kotlin SDK if User Attribute is not hidden

See original GitHub issue

With the Kotlin SDK, running against Looker 7.20.12, user attribute operations fail if the user attribute is not hidden.

For create_user_attribute() for example, this works…

WriteUserAttribute(name=git_password, label=Git Password, type=string, default_value=, value_is_hidden=true, user_can_view=true, user_can_edit=true, hidden_value_domain_whitelist=https://foobar.com/*)

… but this fails with a 422…

WriteUserAttribute(name=git_username, label=Git Username, type=string, default_value=, value_is_hidden=false, user_can_view=true, user_can_edit=true, hidden_value_domain_whitelist=null)

Similiar for set_user_attribute_group_values, this works…

[UserAttributeGroupValue(can=null, id=null, group_id=4, user_attribute_id=38, value_is_hidden=true, rank=null, value=1.2.3.4)]

… but this fails with a 500…

[UserAttributeGroupValue(can=null, id=null, group_id=4, user_attribute_id=28, value_is_hidden=false, rank=null, value=1.2.3.4)]

Testing with the API, I think the issue may be caused by the SDK always sending the hidden_value_domain_whitelist, even if the value is not hidden.

API Docs:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jkastercommented, Apr 20, 2021

@frankspeak this should definitely be fixed with #601 now. That PR should get merged today

1reaction
jkastercommented, Apr 2, 2021

Thanks for the report. We’ll need to investigate the 422 scenario, and we also never want users to encounter 500 errors from calling our API.

Read more comments on GitHub >

github_iconTop Results From Across the Web

User and context configuration - SDKs / - LaunchDarkly docs
This topic explains how to configure user and context objects in LaunchDarkly SDKs. These features are available for both client-side and ...
Read more >
Preference components and attributes - Android Developers
This topic describes some of the most commonly-used Preference components and attributes used when building a settings screen.
Read more >
User pool attributes - Amazon Cognito - AWS Documentation
Attributes are pieces of information that help you identify individual users, such as name, email address, and phone number. A new user pool...
Read more >
Can not add user to a group with Ldap in Java - Stack Overflow
All I needed was to use the full address for the User DN. So I think that 'member' attribute for the group must...
Read more >
FeatureLayer | API Reference - ArcGIS Developers
Indicates if logged in users can delete features created by others. supportsGeometryUpdate Boolean. Indicates if the geometry of the features in the layer...
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