Unable to add Domain Group

%3CLINGO-SUB%20id%3D%22lingo-sub-1785231%22%20slang%3D%22en-US%22%3EUnable%20to%20add%20Domain%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1785231%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22sme-arrange-stack-h%22%3E%3CP%20class%3D%22sme-position-flex-auto%20sme-arrange-overflow-hide-x%20sme-arrange-word-wrap-break-word%22%3ECouldn't%20add%20security%20group%3C%2FP%3E%3C%2FDIV%3E%3CDIV%20class%3D%22sme-padding-left-lg%22%3E10%3A41%3A23%20AM%3CDIV%20class%3D%22sme-padding-top-md%22%3ESource%3C%2FDIV%3E%3CDIV%20class%3D%22sme-padding-top-md%22%3EType%3CP%3EError%3C%2FP%3E%3C%2FDIV%3E%3CDIV%20class%3D%22sme-padding-top-md%22%3EMessage%3CP%20class%3D%22sme-position-flex-auto%20sme-arrange-overflow-hide-x%20sme-arrange-word-wrap-break-word%22%3EError%3A%20The%20specified%20directory%20service%20attribute%20or%20value%20does%20not%20exist.%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1785338%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20add%20Domain%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1785338%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F80474%22%20target%3D%22_blank%22%3E%40Federico%20Gallardo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E500%20-%20COMException%3A%20The%20specified%20directory%20service%20attribute%20or%20value%20does%20not%20exist.%3C%2FP%3E%3CP%3EStack%20trace%3A%20at%20System.DirectoryServices.DirectoryEntry.Bind(Boolean%20throwIfFail)%3CBR%20%2F%3Eat%20System.DirectoryServices.DirectoryEntry.Bind()%3CBR%20%2F%3Eat%20System.DirectoryServices.DirectoryEntry.get_SchemaEntry()%3CBR%20%2F%3Eat%20System.DirectoryServices.AccountManagement.ADStoreCtx.IsContainer(DirectoryEntry%20de)%3CBR%20%2F%3Eat%20System.DirectoryServices.AccountManagement.ADStoreCtx..ctor(DirectoryEntry%20ctxBase%2C%20Boolean%20ownCtxBase%2C%20String%20username%2C%20String%20password%2C%20ContextOptions%20options)%3CBR%20%2F%3Eat%20System.DirectoryServices.AccountManagement.PrincipalContext.CreateContextFromDirectoryEntry(DirectoryEntry%20entry)%3CBR%20%2F%3Eat%20System.DirectoryServices.AccountManagement.PrincipalContext.DoLDAPDirectoryInitNoContainer()%3CBR%20%2F%3Eat%20System.DirectoryServices.AccountManagement.PrincipalContext.DoDomainInit()%3CBR%20%2F%3Eat%20System.DirectoryServices.AccountManagement.PrincipalContext.Initialize()%3CBR%20%2F%3Eat%20System.DirectoryServices.AccountManagement.PrincipalContext.get_QueryCtx()%3CBR%20%2F%3Eat%20System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(PrincipalContext%20context%2C%20Type%20principalType%2C%20Nullable%601%20identityType%2C%20String%20identityValue%2C%20DateTime%20refDate)%3CBR%20%2F%3Eat%20System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithType(PrincipalContext%20context%2C%20Type%20principalType%2C%20String%20identityValue)%3CBR%20%2F%3Eat%20System.DirectoryServices.AccountManagement.GroupPrincipal.FindByIdentity(PrincipalContext%20context%2C%20String%20identityValue)%3CBR%20%2F%3Eat%20Microsoft.ManagementExperience.FrontEnd.AccessValidator.IsValidGroup(String%20groupName%2C%20String%20domainName)%3CBR%20%2F%3Eat%20Microsoft.ManagementExperience.FrontEnd.Controllers.AccessController.GetInvalidInputIfAny(String%20userInput)%3CBR%20%2F%3Eat%20Microsoft.ManagementExperience.FrontEnd.Controllers.AccessController.AddGroup(String%20name%2C%20String%20type%2C%20String%20category)%3CBR%20%2F%3Eat%20lambda_method(Closure%20%2C%20Object%20%2C%20Object%5B%5D%20)%3CBR%20%2F%3Eat%20System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.%26lt%3B%26gt%3Bc__DisplayClass10.%3CGETEXECUTOR%3Eb__9(Object%20instance%2C%20Object%5B%5D%20methodParameters)%3CBR%20%2F%3Eat%20System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext%20controllerContext%2C%20IDictionary%602%20arguments%2C%20CancellationToken%20cancellationToken)%3CBR%20%2F%3E---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%3CBR%20%2F%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%3CBR%20%2F%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%3CBR%20%2F%3Eat%20System.Web.Http.Controllers.ApiControllerActionInvoker.%3CINVOKEACTIONASYNCCORE%3Ed__0.MoveNext()%3CBR%20%2F%3E---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%3CBR%20%2F%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%3CBR%20%2F%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%3CBR%20%2F%3Eat%20Microsoft.ManagementExperience.FrontEnd.Handlers.ImpersonationActionInvoker.%3CINVOKEACTIONASYNC%3Ed__1.MoveNext()%3CBR%20%2F%3E---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%3CBR%20%2F%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%3CBR%20%2F%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%3CBR%20%2F%3Eat%20System.Web.Http.Filters.ActionFilterAttribute.%3CCALLONACTIONEXECUTEDASYNC%3Ed__5.MoveNext()%3CBR%20%2F%3E---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%3CBR%20%2F%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%3CBR%20%2F%3Eat%20System.Web.Http.Filters.ActionFilterAttribute.%3CCALLONACTIONEXECUTEDASYNC%3Ed__5.MoveNext()%3CBR%20%2F%3E---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%3CBR%20%2F%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%3CBR%20%2F%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%3CBR%20%2F%3Eat%20System.Web.Http.Filters.ActionFilterAttribute.%3CEXECUTEACTIONFILTERASYNCCORE%3Ed__0.MoveNext()%3CBR%20%2F%3E---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%3CBR%20%2F%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%3CBR%20%2F%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%3CBR%20%2F%3Eat%20System.Web.Http.Controllers.ActionFilterResult.%3CEXECUTEASYNC%3Ed__2.MoveNext()%3CBR%20%2F%3E---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%3CBR%20%2F%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%3CBR%20%2F%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%3CBR%20%2F%3Eat%20System.Web.Http.Filters.AuthorizationFilterAttribute.%3CEXECUTEAUTHORIZATIONFILTERASYNCCORE%3Ed__2.MoveNext()%3CBR%20%2F%3E---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%3CBR%20%2F%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%3CBR%20%2F%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%3CBR%20%2F%3Eat%20System.Web.Http.Dispatcher.HttpControllerDispatcher.%3CSENDASYNC%3Ed__1.MoveNext()%3C%2FSENDASYNC%3E%3C%2FEXECUTEAUTHORIZATIONFILTERASYNCCORE%3E%3C%2FEXECUTEASYNC%3E%3C%2FEXECUTEACTIONFILTERASYNCCORE%3E%3C%2FCALLONACTIONEXECUTEDASYNC%3E%3C%2FCALLONACTIONEXECUTEDASYNC%3E%3C%2FINVOKEACTIONASYNC%3E%3C%2FINVOKEACTIONASYNCCORE%3E%3C%2FGETEXECUTOR%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Couldn't add security group

10:41:23 AM
Source
Type

Error

Message

Error: The specified directory service attribute or value does not exist.

1 Reply
Highlighted

@Federico Gallardo 

500 - COMException: The specified directory service attribute or value does not exist.

Stack trace: at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_SchemaEntry()
at System.DirectoryServices.AccountManagement.ADStoreCtx.IsContainer(DirectoryEntry de)
at System.DirectoryServices.AccountManagement.ADStoreCtx..ctor(DirectoryEntry ctxBase, Boolean ownCtxBase, String username, String password, ContextOptions options)
at System.DirectoryServices.AccountManagement.PrincipalContext.CreateContextFromDirectoryEntry(DirectoryEntry entry)
at System.DirectoryServices.AccountManagement.PrincipalContext.DoLDAPDirectoryInitNoContainer()
at System.DirectoryServices.AccountManagement.PrincipalContext.DoDomainInit()
at System.DirectoryServices.AccountManagement.PrincipalContext.Initialize()
at System.DirectoryServices.AccountManagement.PrincipalContext.get_QueryCtx()
at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(PrincipalContext context, Type principalType, Nullable`1 identityType, String identityValue, DateTime refDate)
at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithType(PrincipalContext context, Type principalType, String identityValue)
at System.DirectoryServices.AccountManagement.GroupPrincipal.FindByIdentity(PrincipalContext context, String identityValue)
at Microsoft.ManagementExperience.FrontEnd.AccessValidator.IsValidGroup(String groupName, String domainName)
at Microsoft.ManagementExperience.FrontEnd.Controllers.AccessController.GetInvalidInputIfAny(String userInput)
at Microsoft.ManagementExperience.FrontEnd.Controllers.AccessController.AddGroup(String name, String type, String category)
at lambda_method(Closure , Object , Object[] )
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ManagementExperience.FrontEnd.Handlers.ImpersonationActionInvoker.<InvokeActionAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()