Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SecurityRole issue for single user #8

Open
koderi-dp opened this issue Oct 27, 2015 · 1 comment
Open

SecurityRole issue for single user #8

koderi-dp opened this issue Oct 27, 2015 · 1 comment

Comments

@koderi-dp
Copy link

Hi, found one issue with api, when those changes were made for SecurityRole, from int[] to IEnumerable

3f2a0e3

problem is that if you request single user like this

proxy.Users.Get(15).Data; you will get error, because result contains int[] for SecurityRole

"data": {
"id": 15,
"first_name": "x",
"last_name": "y",
"is_active": true,
"is_locked": false,
"email": "[email protected]",
"login_id": "x.y",
"source_control_user_names": [],
"use_windows_auth": false,
"windows_id": "",
"security_roles": [3,
7,
5,
4],
"copy_settings_user_id": null,
"password": null,
"use_gravatar": true
},
"metadata": {
}
}

@BrettGAxosoft
Copy link
Contributor

BrettGAxosoft commented Nov 2, 2015

Hello,

I wasn't able to reproduce this in my testing as the users object for security role is returning an array of security role objects rather than integers. e.g.:

"security_roles": [
  {
    "id": 3,
    "name": "Developer",
    "metadata": {
      "is_admin": false
    }
  },
  {
    "id": 4,
    "name": "Tester",
    "metadata": {
      "is_admin": false
    }
  }
],

You may want to make sure that you have updated to the most recent version of the AxosoftAPI.NET wrapper and then try performing any calls again.

If you continue to experience issues, could I ask what version of Axosoft you are currently running? If you're on an older version, you may want to upgrade to the most recent version available from http://www.axosoft.com/downloads to resolve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants