I am trying to create a term group in the Term Store in sharepoint 2013 using powershell.
Bellow you will find the powershell script that I am using plus the error that I am getting.
$taxonomySession=Get-SPTaxonomySession -Site "http://xs066598:3505"
$termStore=$taxonomySession.TermStores["INT00"]
$group = $termstore.CreateGroup("Site Collection-2525")
$group.Description = "My Term Group"
$termStore.CommitAll()
$group=$termStore.Groups["Site Collection-2525"]
$termSet=$group.CreateTermSet("Word Automation Term Set 2")
$termStore.CommitAll()
$termSet=$group.TermSets["Word Automation Term Set 2"]
$term1=$termSet.CreateTerm("Conversion 1",1033)
$termStore.CommitAll()
Error:
Exception calling "CreateGroup" with "1" argument(s): "The current user has insufficient permissions to perform this operat
ion."
At C:\Projects\PowershelScripts\CreateTermSet.ps1:40 char:1
+ $group = $termstore.CreateGroup("Site Collection-2525")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : UnauthorizedAccessException
Anyone knows what permissions do I have to give to be able to execute the powershell script?
Thank you