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.

SCIM - GET all users work, but a specific users does not

See original GitHub issue

Hi,

I’ve encountered inconsistency between /users and /users/{id}.

I have a user that I cannot get its resource using /users/{id}, though I do get it by querying all users using /users.

The exception I get from querying the specific user is:

System.NullReferenceException: Object reference not set to an instance of an object.
  ?, in void SCIMRepresentationExtensions.ApplyEmptyArray(SCIMRepresentation representation)+(SCIMRepresentationAttribute a) => { }
  ?, in bool Enumerable.Any<TSource>(IEnumerable<TSource> source, Func<TSource, bool> predicate)
  ?, in void SCIMRepresentationExtensions.ApplyEmptyArray(SCIMRepresentation representation)
  ?, in async Task<IActionResult> BaseApiController.InternalGet(string id)
  ?, in async ValueTask<IActionResult> TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)
  ?, in async Task ControllerActionInvoker.InvokeActionMethodAsync()+Awaited(?)
  ?, in async Task ControllerActionInvoker.InvokeNextActionFilterAsync()+Awaited(?)
  ?, in void ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
  ?, in Task ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
  ?, in async Task ControllerActionInvoker.InvokeInnerFilterAsync()+Awaited(?)
  ?, in async Task ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?)

Looking at its attributes, I do not see something special. Attached is a CSV with the user’s attributes. single-user-scim-data.csv

Please let me know if this helps or whether more information is needed.

Thanks Dan

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
simpleidservercommented, Jun 14, 2022

I could reproduce your bug on my local machine by using your sample data (single-user-scimdata.csv). In fact, there was an issue in the algorithm used to set the $ref parameter (enrichment).

I’m going to make a release tomorrow.

0reactions
danflomincommented, Jun 14, 2022

How did you manage to reproduce this? Do you have a test for this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fetch all users via user provisioning SCIM API
Run the Get users SCIM REST API to fetch all users from the user provisioning directory at the Atlassian organization. Example:.
Read more >
Examples of SCIM operations
You can use the SCIM operations to search, create, modify, or delete users and groups in various scenarios. Example 1. To get a...
Read more >
Tutorial - Develop a SCIM endpoint for user provisioning to ...
System for Cross-domain Identity Management (SCIM) standardizes automatic user provisioning. In this tutorial, you learn to develop a SCIM ...
Read more >
Manage users with SCIM endpoints
These CyberArk Identity SCIM server endpoints are available to manage Vault users only and not any other CyberArk Identity-connected directories ...
Read more >
Managing Users & Groups with SCIM
SCIM is an open specification to help facilitate the automated management of user identities and groups (i.e. roles) in cloud applications using RESTful...
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