Jira4r Find users in a project - soap

How do I find the users in a project or users in a group role for a project ?
Thanks!

project = #jira.getProjectByKey('PROJCODe')
devs = #jira.getProjectRoles[2]
#jira.getProjectRoleActors(devs,proj).roleActors[0].users

Related

Getting Invalid Scope with new Permission pages_show_list

I'd like to be able to access to the list of pages that the user manage, without using manage_page.
Since 2.5 (Facebook api version) they added pages_show_list allowing you just to see the list of pages. It's perfect for me, it's allowing me to just do a GraphRequest /me/Accounts without manage_page.
PROBLEM:
I tried to add pages_show_list permission to the login button (with setReadPermission())
But I'm getting a Invalid Scope on the app. I tried with setPublishPermission but got an Exception in java. They are not meant to be together.
After searching trying for 2 long hours finally fond my mistake ....
Maybe this will help you too ...
Be sure to not to add "AccessToken" in the list of permissions that you are asking .
Eg. your permissions should be like -
List < String > permissionNeeds = Arrays.asList("user_photos", "email",
"user_birthday", "public_profile");
and not like
List < String > permissionNeeds = Arrays.asList("user_photos", "email",
"user_birthday", "public_profile", "AccessToken");
Problem solved after deleting facebook sdk from android studio and putting the new one again + deleting project and creating new one on the facebook dashboard.
On the facebook dashboard it shown that i was using the 2.4 Api before i unistalled everything.
In Swift 4.2 and Xcode 10.1
Innitially i added .userFriends, .userBirthday in readPermissions
loginManager.logIn(readPermissions: [ReadPermission.publicProfile, .email, .userFriends, .userBirthday], viewController : self)
I changed my code to
loginManager.logIn(readPermissions: [ReadPermission.publicProfile, .email], viewController : self)
Now it's working.
Here any domain we need to to one thing, that is remove .userFriends, .userBirthday in readPermissions
Do Not ask Permission for AccessToken
List< String > permissionNeeds = Arrays.asList("user_photos", "email",
"user_birthday", "public_profile", "AccessToken");
remove "AccessToken"
List< String > permissionNeeds = Arrays.asList("user_photos", "email",
"user_birthday", "public_profile");
Maybe you need to add it in the Facebook developer console permissions requests section.

Get user's gender using the old Facebook SDK

As you know facebook has moved to api 2.4, and now I can't get the user's gender with my previous code.
$f1 = new Fb_ypbox();
$user_data = $f1->getUserData();
$fb_user_id = $user_data['id'];
$name = $user_data['name];
$gender = $user_data['gender'];
$birthday = $user_data['birthday'];
Now this code only gets the user id & the usre name & his profile picture.
Not the gender or his birth date (although I have the extended permission of user_birthday).
Is there any chance to update my code or any other code to get the user's public info (gender for example) which doesn't request any extended permissions?
I just know that now it's not just making the GET request for "/me", but I also should add the "?fields=gender" addition.. I just can't manage to add it to my current sdk code.
I have read Facebook's API documentation couple of times and I can't figure it out..
Thanks :)
First of all you need to supply a more detailed description like the version of that "Fb_ypbox" class you are using. Probably there is a new version available that deals with the declarative fields changes in the 2.4 API already.
Since you did not supply these information we can only make a guess:
Search for "//graph.facebook.com/me?" in all class files and add the fields=name,gender,...

Facebook connect for Blackberry Application

I am using the Blackberry Facebook sdk from http://sourceforge.net/projects/facebook-bb-sdk/.
The PDF included in the zip file says that attach/include the two .jar files in the Project using eclipse and then use the methods to get user information from facebook.
Including the jar files is fine but when i call the methods and try running the app i get a Run time exception " java.lang.noClassDefFoundError ". No compilation error but a runtime error. I have tried cleaning up the BB 9900 Simulator but it doesn't work. I am pasting the code that causes the runtime exception.
String NEXT_URL = "http://m.facebook.com/login.php";
String APPLICATION_ID = "318512824926003";
APPLICATION_SECRET = "e0e532b55a4586ec2fb0eddf4eed12b1";
String[] PERMISSIONS = Facebook.Permissions.USER_DATA_PERMISSIONS;
ApplicationSettings as = new ApplicationSettings(NEXT_URL, APPLICATION_ID, APPLICATION_SECRET, PERMISSIONS);
Facebook fb = Facebook.getInstance(as);
Inserting the above code causes the runtime exception. Many users have told that this works but have not provided a simple and end solution. So please help.
Thank you.
great.. i got it working.. I retrieved the email id of the FB user by adding a parameter to LoginScreen.java file.
Parameter added : "email"
"http://www.facebook.com/dialog/oauth?scope=publish_stream,offline_access,email&redirect_uri=" + pfbc.getNextUrl() + "&response_type=token&display=touch&client_id=" + pfbc.getApplicationId()
Guys if u need any help integrating FB Connect to your BB App please email me at alvin.chettiar#hotmail.com . I will be glad to help. I know the head banging that i went through.

Social Engine get user id from profile page

I'm trying to add some features to the users profile page, and for that I would need that users ID - just to clarify, it's not viewers ID I'm chasing, it's the ID of the user whose profile I'm viewing.
So, I used $subject = Engine_Api::_()->core()->getSubject('user'); and it returns a big object full of all kinds of data, but don't know how to extract user ID?
Anyone have a clue? (SocialEngine 4 is the platform I'm using)
this will get you the userid of the profile..
$profileownerid = Engine_Api::_()->core()->getSubject('user')->getIdentity();
I've figured it out: $subject_id = $subject->getIdentity(); and voila!

Need to know whether Google Group is Admin managed or user managed in google apps domain?

I am using Google Apps Provisioning API to play around with google apps domains group settings. I have got the list of the all the groups in a domains but I need to know whethet a particular group is User-Managed or Admin-Managed.
I cannot see any method to get that information. I would need some help here if anybody knows about this. Thanks :)
With Google Apps Script, you could get the Owner list using getAllOwners(), and check to see if the owners of the group are admins. Something like:
function isAdminManaged(groupName){
var groupOwners = GroupsManager.getGroup(groupName).getAllOwners();
for (var owner in groupOwners){
var userName = groupOwners[owner];
if(UserManager.getUser(userName).getIsAdmin()){
return true;
}
}
return false;
}
The provisioning API has an undocumented flag you can specify when retrieving all groups with this call:
https://developers.google.com/google-apps/provisioning/#retrieving_all_groups_in_a_domain
if you append ?skipUserCreatedGroups=True to the URI, as in:
https://apps-apis.google.com/a/feeds/group/2.0/example.com?skipUserCreatedGroups=True
then only admin-created groups will be returned. If your group isn't returned by this API call, then you know it's user managed.
Not highly efficient for checking just one group but it gets the job done.