Is it possible to delete a WorkSite user using the API?
I have the following dlls referenced.
IManage.dll
IMANADMIN.dll
IMANEXTLib.dll
I can create a user using IMANADMIN.NRTDatabase.CreateUser()
No, Worksite doesn't allow delete a user.
Only rename via DbAdmin (It's not possible do it using iManage API) to another user or disable him.
As far as I know it isn't possible to do via API
You may only forbid user to log in.
You can use the following:
IMANADMIN.NRTDatabase.DeleteUser()
Related
I tried to create a new user in RingCentral account but It is not allowing me to create it. I am using developer Admin account.
Am I missing any privileges?
You may be using free account and that's the reason there is not much privilege to create enough users.
You need to go to https://service.devtest.ringcentral.com/application/users/users/
Try the add user--> Add user without device and then try without number as below:
This will work. If you are still unable, then please raise a support ticket.
Hope that helps.
I am using wso2 Identity Server and creating custom claims in it. In a specific use case i need two claims to replicate the same value.
So while creating user if i have give "1234" to claim http://wso2.org/claims/store1/id1 than claim http://wso2.org/claims/store2/id2 should also have "1234".
Is there any way possible to achieve this.
One way to achieve this, is to overwrite method in user store manager. There you can put your custom logic to save and get claims.
I manage a domain of users and would like to be able to transfer all the documents of a user to another user. As far as I understand the best way to achieve that is to find the fileID's of all files belonging to one user and transfer them to another user. However, I have problem constructing a query.
UPDATE:
So the correct query to retrieve the list of files would be:
response = drive_service.files().list(q="'user#company.com' in owners").execute()
However, it only works for me as an admin. If I try to retrieve the list of files for any other user in my domain it returns an empty list.
Files.list will retrieve all the user's files, in this case it will get all your own files. In order for that query to work would be only if that user is also owner one(or more) of your files.
Even as an admin you cannot access users files directly.
To access other user's files, as an admin you need to impersonate the users and then perform actions in their behalf.
This is achieved by using a service account with domain wide delegation of authority.
Here you can find more information on that as well as a python example.
Hope it helps.
If you want to transfer all the files of one user into another user's Drive, the easiest way would be to use the Data Transfer API provided by Google. This way you don't have to list the files and transfer them one by one. Also you only need the admin access token and wouldn't need domain wide delegation either. You can get the official documentation here
I need to retrieve all the pages owned by the current user. I need the syntax. Can it be done using Graph API???
Yes. Use the /me/accounts path.
I am creating my first API with tastypie and I would like to know how can I set that only owners can edit it's own resources.
Should I?
create a basic authentication like in this example
check if the request.user is the same of the resource.owner
check if the request is a PUT
Is this the best way to fo it?
Thanks!
Yes, what you described is an ok way to do it. Alternatively you could manipulate methods involved in updates: put_detail() and obj_update() but your idea is probably a bit cleaner as after all what you try to do is obviosuly authorization. Therefore the code belongs in the Authorization class not in the methods which actually update the objects as those shouldn't even be called when the user is not authorized to update given resource.
You may also want to look at Tastypie Cookbok which now has a "recipe" for creating "per-user" resoures which also describes how to list resources belonging to a given user only.