SCIM - GET all users work, but a specific users does not
See original GitHub issueHi,
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:
- Created a year ago
- Comments:7 (3 by maintainers)
 Top Results From Across the Web
Top 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 > Top Related Medium Post
Top Related Medium Post
No results found
 Top Related StackOverflow Question
Top Related StackOverflow Question
No results found
 Troubleshoot Live Code
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free Top Related Reddit Thread
Top Related Reddit Thread
No results found
 Top Related Hackernoon Post
Top Related Hackernoon Post
No results found
 Top Related Tweet
Top Related Tweet
No results found
 Top Related Dev.to Post
Top Related Dev.to Post
No results found
 Top Related Hashnode Post
Top Related Hashnode Post
No results found

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.
How did you manage to reproduce this? Do you have a test for this issue?