I met KeyNotFound exception when i’ve tried to query the user list in rally rest .net api. The example code is following:
Request query = new Request("User");
query.Workspace = workspaceRef;
var response = api.Query(query);
The detail of exception is : “The given key was not present in the dictionary.” and its stack traces:
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Rally.RestApi.DynamicJsonObject.GetMember(String name)
at Rally.RestApi.RallyRestApi.Query(Request request)
Please advise me the proper way to query a list of users of the workspace.
BTW, is there any way to get a list of users who has permission to access a project in Rally Rest .NET api?
Many thanks for ur helps.
your syntax looks Ok. Where are you seeing the “…key was not present…” error occur? When accessing the Results collection?
I’m including a code sample below that illustrates querying for users within a Subscription and summarizing their Workspace and Project Permissions. I hope this helps.