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

Update-VSTeamUserEntitlement not working to update user acesslevel #417

Closed
4 tasks
thahif opened this issue Sep 16, 2021 · 12 comments · Fixed by #430
Closed
4 tasks

Update-VSTeamUserEntitlement not working to update user acesslevel #417

thahif opened this issue Sep 16, 2021 · 12 comments · Fixed by #430
Assignees
Labels
bug when a bug has been identified or filed Investigating when an issue needs further investigation by a maintainer. Used only by maintainer.

Comments

@thahif
Copy link
Contributor

thahif commented Sep 16, 2021

I am trying to update user accesslevel using below command and throws up an error.

Update-VSTeamUserEntitlement -Email [email protected] -License express

Confirm
Are you sure you want to perform this action?
Performing the operation "Update user" on target "xxxxxxxxxx ([email protected])".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y
WARNING: The request indicated a Content-Type of "application/json-patch+" for method type "PATCH" which is not supported. Valid content types for this method are:
application/json-patch+json.
Invoke-RestMethod : {"$id":"1","innerException":null,"message":"The request indicated a Content-Type of "application/json-patch+" for method type "PATCH" which is not supported. Valid
content types for this method are: application/json-patch+json.","typeName":"Microsoft.VisualStudio.Services.WebApi.VssRequestContentTypeNotSupportedException,
Microsoft.VisualStudio.Services.WebApi","typeKey":"VssRequestContentTypeNotSupportedException","errorCode":0,"eventId":3000}
At C:\Program Files\WindowsPowerShell\Modules\VSTeam\7.4.0\vsteam.functions.ps1:266 char:18

  •      $resp = Invoke-RestMethod @params
    
  •              ~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
    • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

Steps to reproduce

Expected behavior


Actual behavior


Environment data

OS

  • macOS
  • Windows
  • Linux

Server

  • Azure DevOps Service
> Get-VSTeamAPIVersion
PS C:\windows\system32> Get-VSTeamAPIVersion


Billing                     : 5.1-preview.1
Build                       : 5.1
Core                        : 5.1
DistributedTask             : 6.0-preview
DistributedTaskReleased     : 5.1
ExtensionsManagement        : 6.0-preview
Git                         : 5.1
Graph                       : 6.0-preview
HierarchyQuery              : 5.1-preview
MemberEntitlementManagement : 6.0-preview
Packaging                   : 6.0-preview
Pipelines                   : 5.1-preview
Policy                      : 5.1
Processes                   : 6.0-preview
Release                     : 5.1
ServiceEndpoints            : 5.0-preview
TaskGroups                  : 6.0-preview
Tfvc                        : 5.1
VariableGroups              : 5.1-preview.1
Version                     : VSTS
> $PSVersionTable

PS C:\windows\system32> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.19041.1237
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.1237
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
@thahif
Copy link
Contributor Author

thahif commented Sep 22, 2021

Can someone acknowledge this issue?

@SebastianSchuetze
Copy link
Collaborator

I can confirm it. Gonna look at it soon.

@SebastianSchuetze SebastianSchuetze self-assigned this Oct 10, 2021
@SebastianSchuetze SebastianSchuetze added bug when a bug has been identified or filed Investigating when an issue needs further investigation by a maintainer. Used only by maintainer. labels Oct 10, 2021
@thahif
Copy link
Contributor Author

thahif commented Nov 3, 2021

@SebastianSchuetze - any update here?

@SebastianSchuetze
Copy link
Collaborator

Unfortunately not. Private life is stopping me from doing some wanted open source work.

But if you are comfortable to try to submit a PR that from yes the core bug, then I can look at it and and adjust so you t fits well the the rest of the code.

If you do just make sure I can edit your PR.

@thahif
Copy link
Contributor Author

thahif commented Nov 5, 2021

With some help from stackoverflow community, I was able to get below update.
image

Will this help you out?

@SebastianSchuetze
Copy link
Collaborator

it does

@thahif
Copy link
Contributor Author

thahif commented Nov 15, 2021

@SebastianSchuetze - any progress made here?

@azafefo
Copy link

azafefo commented Nov 17, 2021

I waiting to resolve this issue too. Any progress?

@SebastianSchuetze
Copy link
Collaborator

The bigger problem we have currently is the release pipeline. We can't release new packages properly without it and I have to find time to do it. But if you guys would be able make a simple PR you would help me a lot!

@thahif
Copy link
Contributor Author

thahif commented Nov 22, 2021

@SebastianSchuetze - I tried creating one, failed with below error.
image

@SebastianSchuetze
Copy link
Collaborator

You need to fork the repository to your account, create a branch, make changes, create a PR bag to the "trunk" branch in this repo

works like explained in this article:
https://www.dataschool.io/how-to-contribute-on-github/

We dont give direct rights to our repo for contributor, because that could reduce quality.

@thahif
Copy link
Contributor Author

thahif commented Nov 23, 2021

@SebastianSchuetze - PR raised. #430

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug when a bug has been identified or filed Investigating when an issue needs further investigation by a maintainer. Used only by maintainer.
Projects
None yet
3 participants