Forum Discussion
myLogin_24886
Nimbostratus
Oct 16, 2007How to set partion after creating a user thru iControl API
Hi,
I have created user using m_userManagement.create_user(users), which didn't have way to define partion. Is their any other API call which I can use to set up the partion.
Thank...
Oct 16, 2007
The set_active_partition, will set the context of the current iControl client as to what partition they are accessing. I believe the question was how to assign a partition to a specific users authorization settings.
If you look into the Management::UserManagement interface you will see the following method:
struct UserPermission {
UserRole role;
String partition;
};
Management.UserManagement.set_user_permission(
in String [] user_names,
in Management__UserManagement__UserPermission [] [] permissions
);You use this method to specify what role the user is (admin, manager, operator, etc) as well as the partition that he is authorized to access.
Then, in your iControl application, you will have to make a call to Management.UserManagement.get_my_permission() to retrieve which partition the calling user is authorized to access and then call Management.Partition.set_active_partition() to set the context of the current caller's partition.
Hopefully this clears things up...
-Joe
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
