facosta 0 Posted May 4, 2020 Share Posted May 4, 2020 Español: Buenas. Estoy comenzando a utilizar la API, cosa que se me ha hecho muy interesante. En contexto, cuando se crea un usuario, tiene acceso a todas las librerías por default, para eso modifico sus políticas, por ejemplo: Aquí le estoy diciendo que excluya esas dos subcarpetas, en el parámetro "ExcludedSubFolders". Pero me gustaría saber, si hay alguna forma en que al momento de crear el usuario haya algún parámetro que por default haga que NO tengan acceso a ninguna librería, y después yo pueda asignar a tal usuario a qué librerías SI podría acceder? English Good. I am starting to use the API, which has been very interesting for me. In context, when a user is created, he has access to all the libraries by default, for that I modify his policies, for example: Here I am typing that exclude those two subfolders, in the "ExcludedSubFolders" parameter. But I would like to know, if there is any way that at the moment of creating the user there is some parameter that by default makes them NOT have access to any library, and then, I can assign such a user to which libraries he or she could access? Thanks! @@chef @@rechigo Link to comment Share on other sites More sharing options...
Solution rechigo 293 Posted May 8, 2020 Solution Share Posted May 8, 2020 With a single request, no In order to create a new user, you first make the request to /Users/New with a body containing a "Name" property, which is all it will accept However, you can make a second request to /Users/{ID}/Policy and in the body, add the "EnableAllFolders" property and set that to false, which will update the user so they have access to no folders/libraries 2 Link to comment Share on other sites More sharing options...
facosta 0 Posted May 12, 2020 Author Share Posted May 12, 2020 Thanks! I understand now. It was easier than I thought. Thanks again. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now